05-03-2011, 09:23 AM
Thanks for your answer.But I have question regarding your 2nd point.
qtp_App.Test.Actions(1).ObjectRepositories.Add "C:\Shared OR.tsr"
qtp_App.Test.Actions(2).ObjectRepositories.Add "C:\Shared OR.tsr"
I dont want to do that way because I called the startup.vbs file where
.tsr file will will be added and diff test can have diff number of action
so I want to make it duynamically ..
Is there any way to find out how many action have within a single test
so that when I run the vbs file from outside for a perticular test , its automatically associate .tsr file to all the actions for called test.
and regarding you 1st point I wanted to say ,
I associate a environmental file (.xml) into running test but in script when i want to see the environment value by suing msgbox like
val = environment("anyveriable")
msgbox val
I dont get any value but I added dynamically environmental file and it is showing in test setting also.
Am I doing anything wrong ?
Please put some light these 2 points what I said.
Thanks in advance ......
qtp_App.Test.Actions(1).ObjectRepositories.Add "C:\Shared OR.tsr"
qtp_App.Test.Actions(2).ObjectRepositories.Add "C:\Shared OR.tsr"
I dont want to do that way because I called the startup.vbs file where
.tsr file will will be added and diff test can have diff number of action
so I want to make it duynamically ..
Is there any way to find out how many action have within a single test
so that when I run the vbs file from outside for a perticular test , its automatically associate .tsr file to all the actions for called test.
and regarding you 1st point I wanted to say ,
I associate a environmental file (.xml) into running test but in script when i want to see the environment value by suing msgbox like
val = environment("anyveriable")
msgbox val
I dont get any value but I added dynamically environmental file and it is showing in test setting also.
Am I doing anything wrong ?
Please put some light these 2 points what I said.
Thanks in advance ......