Question

4
Replies
829
Views
SuryaYanamandra Member since 2016 27 posts
Capgemini
Posted: 1 year ago
Last activity: 1 year 6 months ago
Closed

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

Robotic Process Automation
Moderation Team has archived post
Share this page LinkedIn