Forum Discussion
Question: Do the descriptions have to be specifically documented in the Excel spreadsheet? Or, can you have your automation code, when it creates the new asset, generate a unique description at that time?
For example, in our application under test, we have to create a new record at the start of the test case. The application creates a new unique ID automatically but, for tracking purposes, we need to generate a new description. The record is for a person so we use a static last name of "LastName" for that data entry field. The first name we use a code expression and generate the following in a "Set Variable Value" keyword operation:
'Test' + aqConvert.DateTimeToFormatStr(aqDateTime.Now(), '%Y%m%d%H%M')
Every time we run the test case, we always get a unique first name for the data record and assign it to that variable. Then, everywhere through the test case we need to reference the person by name, we can use that variable.
Rather than having to read from an external file, I would recommend investigating this method. It is less complicated than trying to make sure you always grab a new record from the Excel sheet each time you run the test.
Related Content
Recent Discussions
- 2 days agojstaehlin