While writing script using For Next Statement in QTP, I try
defining the variable in Lib File I am getting syntax error
whereas if I use the variable in script file, the script
works fine. Can anyone help me in finding the reason behind
this?.
E:g
Dim intStartRow (Define in Lib File----- say abc.vbs)
Dim intRow (If I define this variable in Lib file I am
getting Syntax error where as if I define in the script
file ---- say xyz.mts the script works fine)
IntStartRow=2
For intRow = intStartRow to xlWrksht.UsedRange.Rows.Count
‘Some Code here
Next
Answer / jay prakash
should be some simple error in ur declaration. Nothing big
in this.
Do as below:
In Lib file, MyLib.vbs:
Dim i
i=10
In Script File
msgbox i
Include the lib file and run the script. No error.
If you can share the script i may be able to help u in
identification of your error.
| Is This Answer Correct ? | 0 Yes | 0 No |
can test automation improve test effectiveness?
What information do the columns in the Keyword View show for each step?
General Ques : At What State u start Automating ? means at what stage we start writing QTP scripts ?
where we are going to write the descriptive programming.for example we are invoking qtp application where we are going to write that code
which is the easiest way you can send the QTP test results to Client if he want to see the screenshots when the results are failed?
Explain object spy in qtp.
Hello Everybody, please tell me how to use accessibility checkpoint and XML checkpoint by giving any practical example of it.please provide me the steps to perform that and also pls provide the code too. Thanks in advance, Gaytri
I Selected for TCS-Chennai(Contract to hire) position plz suggest me whether i have to join or not
Can we access the java methods in qtp. Because my requirement is to access the swt(for eclipse an it is java code) methods in qtp is it possible?
Can u explain about QTP framework
Have you faced any problems with object repository?
hi guys, pls tell me for testing institution training hub, hitech city is best or not?