Posted: 27 Feb 2019 4:15 EST Last activity: 12 Mar 2019 8:53 EDT
How to Increment the array using List loop.
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."
@grona Thanks for the response . . could you pls elaborate with any images or document for point 1.
Also, for 2, I've verified the element (whether it is matching or captured correctly or not), from where I am taking value. I've interroragated the "You successfully created the user: M12345". message and passing that value to location where I want it as output using WriteAllText method.
Hi grona , I am working on the Remote machine, where there is no MS office Installed. Could you please suggest any other approach, I would like to design workflow - Once User1 is successfully created, flow should be continued to Search again (from line 2 and so on. . till nth user) by using UserName attribute, which is 2nd index of my CSV file followed by Adding of User.