Hi,

I am new to QTP and vb.script.How to start to write
vb.script in QTP? Please give me suggestions?

Answers were Sorted based on User's Feedback



Hi, I am new to QTP and vb.script.How to start to write vb.script in QTP? Please give me sugg..

Answer / kondalu

for example: calculator(table as form1) boxes in editbox as
the value1 and value2 and result,buttons as the
add,sub,mul,divide ,clear this in application vbscript
given bellow

vbwindow("form1").Vbedit("value1").set "10"
vbwindow("form1").vbedit("value2").set "20"
vbwindow("form1").vbbutton("add").click
vbwindow("form1").vbbutton("sub").click
vbwindow("form1").vbbutton("mul").click
vbwindow("form1").vbbutton("divide").click

Is This Answer Correct ?    10 Yes 2 No

Hi, I am new to QTP and vb.script.How to start to write vb.script in QTP? Please give me sugg..

Answer / satyanarayana

Hi dear it is very easy to write vb scripting.
First of all we have to understand what the actions to be
performed by us on the application.
Actions means entering a value or clicking a button or
selecting a value from a list dropdown list or selecting or
deselecting a check box.
example for a edit box
Browser("browsername").Page("pagename").Webedit("username").set"satyanarayana"
like the above for buttons .click
for list boxes .select"satyanarayana"
for radio buttons .set
for check boxes .set"on/off"

Is This Answer Correct ?    5 Yes 1 No

Hi, I am new to QTP and vb.script.How to start to write vb.script in QTP? Please give me sugg..

Answer / geena

Do record and play. U will understand how the script
appear. Then try.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

What is Optional step?

4 Answers  


if anyone has idea of the interview procedure in covansys, plz send me a mail?

0 Answers  


What are the properties you would use for identifying a browser and page when using descriptive programming?

0 Answers  


How can we import into Excel "Details" ,"Result" ,"Time" parameters from within a Results Report which is generated after a Run error when a script is executed in QTP? Refer E.g below Status Functionality Description RunDate Fail Login User should be able to Login 12/3/2007 StartTime EndTime Details* 1:31:58 PM 1:32:29 PM (this one i want)

0 Answers  


After the execution of a script how do u upload the results to Quality Center. Pls anyone explain in detail. It is very urgent._______Thanks a lot!!

2 Answers   ABC,






Now it appears to be more than enough... I have learn entire QTP, I did whatever I could do but still facing lots of problem and those problems could be removed only after working in professional atmosphere. But still unable to expose myself as professionaly. It is becoming panic, It has been two years I am in manual testing and looking for the change but all the recruiters ask for QTP, but my problem is I don't have working experience with QTP. Kindly suggest me I really need effective suggestions. I dont have more caliber to work with present organization cause of salary reasons...boo.. hooo...hooo. My email address is alkaa.dugaal@gmail.com

0 Answers  


Hi guys can any plz help me how to send fax in sample Flight Appication

1 Answers  


how u will describe testing activities?

2 Answers  


can any one give me the doccument how to test aproject developed in java language in qtp can here can we use the general vb scripting or we have to use java script here if we have to ese the java script here can any one send me the manual for it means how to write descriptive programming for it thanks in advance

1 Answers  


How to use library files in QTP? how we can call these files in to script?

4 Answers   Virtusa, Wipro,


what skills needed to be good test automation?

3 Answers  


What are the 3 main stages involved in testing with qtp?

0 Answers  


Categories