Data Driven LeanFT
Question ID: 106449
0
0

Does anyone have information on how to build a data driven LeanFT script/framework? I’m using Eclipse.

Marked as spam
Posted by (Questions: 1, Answers: 0)
Asked on October 13, 2015 3:59 pm
129 views
Answers (1)
0
Private answer

You could use the same logic as a regular UFT script. You would use a text file to store the values you want to use. Depending on the programming language, you would open up the text file, find out the number of rows of data in the file, and store it in a variable.

Next, you would create a simple conditional loop using the maximum number of rows variable from above as your termination.

Programmatically read in a line of text from the file, and store in a string variable (or integer depending on the data type), and if needed, split the string by a delimiter if you want to store multiple values in a row. Use that array or the string variable as input in the field or fields in the application as needed.

Close the text file when done reading.

Marked as spam
Posted by (Questions: 2, Answers: 477)
Answered on April 28, 2017 5:10 pm
EyeOnTesting

Welcome back to "EyeOnTesting" brought to you by Orasi Software, Inc.

X
Scroll to Top