Interview Questions   Tutorials   Discussions   Programs   Videos   

QTP - How to write vb script in qtp ? give me some basic scripts




248
views
asked marvit August 13, 2014 09:00 AM  

How to write vb script in qtp ? give me some basic scripts


           

1 Answers



 
answered By Dharma   0  
To Write Vb Scrept in QTP, Follow these steps
1) Open a new test in QTP.
2) Copy the following code in QTP test.

'Declare a variable
Dim sMessage

'Assign a value to the variable
sMessage = "This script is written and executed using QTP"

'Display the text in a messagebox
Msgbox sMessage

3) Save the test
4) Run the code using QTP.
Once you run the code in QTP, you would see a message box as below

flag   
   add comment

Your answer

Join with account you already have

FF

Preview


Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!

Alert