sridharp_mcf
15 years agoContributor
How to change the mapped object properties during test run time through VB script
Hi
In my application a page shows records in grid table, end of the every row has edit and delete icons to edit/delete records, when we want a add a record, a new row will be added below the grid table after clicking on the add button. we can enter values and save the new record with a save button which is placed end of the new row.
We are using Test Complete 7.0 version., Test fail to run the recorded add operation cause of changing in cell row index property value.
If cell Row index value is 4 while recording add operation Cell1(4,0), Cell2(4,1), Cell3(4,2).............., Now the newly added row Cell RowIndex value getting increase by 1, i.e, Cell1(5,0), Cell2(5,1), Cell3(5,2)....
Here I wants to change the Cell Object Row Index value through script during run the test with out manual interaction and with out using Update mapping during Runtime wizard,
I tried with "SetPropertyValue" method
aqObject.SetPropertyValue("Cell1", "RowIndex", 5)
but its not working. Please any one help me in this regard its very urgent . How to change an object property value during run time. In QTP Automation Test tool there is a command 'SETTOPROPERTY' to set a required value to a particular test object... like the way is there any command to do this.
I would be great full to help in this..
Thanks in Advance
Sridhar P
In my application a page shows records in grid table, end of the every row has edit and delete icons to edit/delete records, when we want a add a record, a new row will be added below the grid table after clicking on the add button. we can enter values and save the new record with a save button which is placed end of the new row.
We are using Test Complete 7.0 version., Test fail to run the recorded add operation cause of changing in cell row index property value.
If cell Row index value is 4 while recording add operation Cell1(4,0), Cell2(4,1), Cell3(4,2).............., Now the newly added row Cell RowIndex value getting increase by 1, i.e, Cell1(5,0), Cell2(5,1), Cell3(5,2)....
Here I wants to change the Cell Object Row Index value through script during run the test with out manual interaction and with out using Update mapping during Runtime wizard,
I tried with "SetPropertyValue" method
aqObject.SetPropertyValue("Cell1", "RowIndex", 5)
but its not working. Please any one help me in this regard its very urgent . How to change an object property value during run time. In QTP Automation Test tool there is a command 'SETTOPROPERTY' to set a required value to a particular test object... like the way is there any command to do this.
I would be great full to help in this..
Thanks in Advance
Sridhar P