LDTP Data XML Tags
- We have the following tags in Data XML
- data - The complete XML are tagged under this and tag
- User defined tags with user defined values. These user defined tags can appear multiple times. If you use LDTP utils XML parser, the values from the user defined tags are returned as a list. So, you can use it with its index. The list index starts from 0.
Advantages of using LDTP Data XML
- Technically its a good practice to separate script and data. Reason behind this is re-usability
- Scripts will be written just once, based on the need we can just populate the data XML
- In some cases for doing regression testing we will just have one script and multiple data files
- Reason for XML format is, its easy to parse ;)
Reference
Optional Reference
- How to create LDTP test scripts in python
- Running LDTP scripts How to execute scripts
Sequencing set of LDTP scripts using ?ldtprunner XML file Obsolete
?Generating LDTP Data XML file format