Test Complete only reading first record of Excel data file.
Hi. I'm new to Test Complete and this forum.
I am testing a web based application that allows employees to sign up for Health Care and Dental. I am using Key Word tests, as I am not very experienced in coding. The employees login to the application using their unique Employee ID. The application recognizes the employee and knows if they are eligible or not and if they are Part Time or Full Time among other things. Based on the employee, it displays a workflow of questions across several pages that the employees answer to determine what they want as far as their health care for next year.
I am using an excel data file with over 1000 records – each record an employee with a different scenario. I have a “Login” test that verifies the login process and based on who the employee is, they are taken to one of 3 different screens in the workflow which will eventually branch out to potentially 30 screens in the workflow when all is said and done.
I have a data driven loop set up on the "Login" test which calls a different test to execute for the next page in the workflow, but when I get to the next screen, the screen always seems to be reading off of the first record in the data file, and not necessarily the employee I am logged in as (the second employee in the loop for example).
Is there a way to maintain the Employee ID easily from screen to screen using a feature in the Key Word test or is this something that will have to be coded? Thank you all in advance!
If I'm reading your tests correctly, you first run the login test then call the DCRA keyword test. Then the DCRA keyword test recalls the login test?? This, in essence, restarts the DDT.
On the login test, all of the steps for the Data Driven loop should be indented to make them part of the loop. Currently, they are at the same level as the DD loop, so you really don't have a loop. Then for the DCRA test, remove the call to the login test. If all of the steps under the DD loop in the login test are indented to be part of the DD loop, when the DCRA test completes it will go back to the DD loop and use the next record for the DCRA test.
Review the following to get an overview of Data Driven testing with TestComplete: https://support.smartbear.com/articles/testcomplete/data-driven-testing/?utm_source=site-search&utm_medium=search-results&utm_campaign=site-search-c&utm_term=data+driven+tests.