Question
Standard Charted
IN
Last activity: 12 Mar 2019 8:53 EDT
How to Increment the array using List loop.
Hi All,
PFB scenarios. Kindly share your ideas on the same.
1. I am doing Search and Add functionality automation to Web application. First I am passing an array having input values to Search, considering only second index value from the array, where I've given User Id as Search Input.
For instance, TestLName,TestFName,M12345,Admin - Here, I am passing value in 2nd index that is M12345 as Search Input, If not found - It will proceed with adding user.
Now my Query here is, I am passing Input through .CSV file - I want to make continuous flow like once Searching and adding of user in first row completed, It should be automatically incremented to second row of the .csv file. (I've tried to do this by using both List and For loop but failed to achieve)
2. Also at the end of creation of User, Captured message like "User is successfully Created", using GetValue, I am writing it to the .txt file, where I am able to do that only If I use breakpoints near those steps. Without using breakpoints I am getting below error.
"Error executing link in Automation: SearchAndAdd - From: Web_Application1.UserCreated.WaitForCreate() To: Web_Application1.UserCreated.GetValue()
Object reference not set to an instance of an object."
Thankyou,
Surya Y