adspace


In manual testing, I have query regarding data conversion testing. I am working on xml document. How do we write test cases for below input as well as for output
Input: <text>1. software Testing</text>
Output:
<paragraph><text><desig>1.</desig>software testing</text></paragraph>

Answer Posted / Prachi Sachan

To write test cases for data conversion testing in an XML document, follow these steps:
1. Define the input and expected output formats clearly. In this case, your input is `<text>1. software Testing</text>`, and the expected output is `<paragraph><text><desig>1.</desig>software testing</text></paragraph>`.
2. Create test cases for each step of the data conversion process. For example:
- Verify that the input XML document is correctly formatted.
- Validate that the correct data elements are being selected and processed by the conversion script.
- Check if the output XML document matches the expected format, including any required attributes or nested elements.
3. Implement your test cases using a suitable test automation tool (e.g., Selenium, PyTest).
4. Execute the test cases and verify that they pass as expected. If any tests fail, investigate the cause and make necessary corrections to the conversion script.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Positive and Negative test cases for the speedometer?(minimum 5 each)

2988


Can someone tell me the test cases to test the password for with following scenario: 1. Password should be minimum 6 chars and maximum 8 chars. 2. Password should consist one uppercase letter 3. Password should consist of one numeric 4. Password should consist of one special character.

2216


Can anybody help me in writing test cases for a scenario? need help at the earliest. will send you the requirement doc to your email id. thanks raj

2407


# A large IT company is in the process of revising salary structure for its employees. The salary will be on the basis of assessed performance of the previous year for all employee who have completed six months or more. # The rules for salary revision are provided below :- Performance level 1 : Increase existing salary by 30% Performance level 2 : Increase existing salary by 20% Performance level 3 : Increase existing salary by 10% Performance level 4 : Increase existing salary by 5% Performance level 5 : No Increase # For those who have not completed six months, provide a flat increase of 7.5% in their salary. In addition to above provide a special loyalty allowance of Tk. 800 to all employees who have complete THREE years with the organization. # Compute the minimum number of paths that you would require to cover the application and how many test cases would you require?

2689


What is the toughest moment you faced in your testing carrier in which everyone praised you?

2336


In any Hyderabd institute you can find these word commomly used by faculties ... Yes or no / Right or wrong so funny...

2297


hai im finished software testing course im technicaly strong but yet now no opportunities come to me.if any opportunities please send to my mail id my mail di is sumathi11685@gmail.com

2360


Can any one send me the Sample sanity Test Cases??? Mail id:veerabhadrudu.p@gmail.com

3891


pls i want test cases for oss? whts the process of oss testing

2646