aLostDawg
13 years agoOccasional Contributor
Assigning Data Driven value to Object attribute
Not sure if I'm considered a novice, as I have many years using TestPartner, QTP and other tools. Only been using TestComplete about a week now.
TestComplete Version: 9.0.1312.7
Microsoft Windows Version: 7 Enterprise
Scenario:
I've built a data driven keyword test that uses two sheets off of the same .xlsx file. The first loop determines which server I'm going to be testing the web page against. I have all of my servers set up in this file with a 'Run' column with 'Y' denoting which servers I will be testing against. This works great and iterates through the servers. It's the next one that I'm having issues with.
The second loop determines which Forms will be run against each server. This also is set up with a 'Run' column so that I can have all of my data there, but only run specific forms. It selects the Form from a droplist in the AUT based on an object that has the outerText value set to a variable 'FormName' that is passed in from the DataTable. The first one works great. The subsequent times that it goes to pick the Form from the droplist it selects the original value of the 'FormName' variable. I've verified via log messages that the value of 'FormName' is changing.
In looking at the Additional Info it looks like it may be testing against the Cell coordinates, not the attributes.
Sys.Browser("iexplore").Page("Page").Panel("createForm").Frame("createFormPaneliframe").Table(0).Cell(0,
0).Table(0).Cell(7, 2)
Is there some way to reset the object so that it dumps the previous 'FormName' out of the outerText attribute value?
I thought I might have to send the 'FormName' as a parameter to the child keyword test, but there isn't a way to connect the object to the parameter of a keyword test as far as I can tell.
Any ideas on what I might be doing wrong?
TestComplete Version: 9.0.1312.7
Microsoft Windows Version: 7 Enterprise
Scenario:
I've built a data driven keyword test that uses two sheets off of the same .xlsx file. The first loop determines which server I'm going to be testing the web page against. I have all of my servers set up in this file with a 'Run' column with 'Y' denoting which servers I will be testing against. This works great and iterates through the servers. It's the next one that I'm having issues with.
The second loop determines which Forms will be run against each server. This also is set up with a 'Run' column so that I can have all of my data there, but only run specific forms. It selects the Form from a droplist in the AUT based on an object that has the outerText value set to a variable 'FormName' that is passed in from the DataTable. The first one works great. The subsequent times that it goes to pick the Form from the droplist it selects the original value of the 'FormName' variable. I've verified via log messages that the value of 'FormName' is changing.
In looking at the Additional Info it looks like it may be testing against the Cell coordinates, not the attributes.
Sys.Browser("iexplore").Page("Page").Panel("createForm").Frame("createFormPaneliframe").Table(0).Cell(0,
0).Table(0).Cell(7, 2)
Is there some way to reset the object so that it dumps the previous 'FormName' out of the outerText attribute value?
I thought I might have to send the 'FormName' as a parameter to the child keyword test, but there isn't a way to connect the object to the parameter of a keyword test as far as I can tell.
Any ideas on what I might be doing wrong?