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 |
Which object model ur used in ur project
Is there is any method how to connect remote desk throw QTP if yes please answer with a example?
How we can we create a Text checkpoint in QTP 9.1,Actually what i did is first i put in recording mode and gofor Inser menu>Checkpoint>Textcheckpoint>click,Now an hand symbol came and i showed it to some textbox and cliked but the QTP9.1 is giving an error message like "The Obkect you are selecting doesn't support this operation" If i go for Help of QTP 9.1 information I didn't get any solution,pls help me in this issue.
Could you suggest me best coaching for automation in Delhi or nearby area?
Explain how qtp identifies object?
Hi All, I need code for how to execute qtp scripts from excell sheet
what is the difference between development and testing
how to associate object repository during runtime in qtp
anyone can explain about "Smart Identification" in QTP. what is the use of "Smart Identification" ???
what is the difference between action and function
11 Answers AppLabs, BirlaSoft, Infosys,
can we do load testing , by using QTP......?
now a days which one is using all companies for qtpscript a)Object Repository based script b)Descriptive program based script c)BOTH