What is meant by Step Generator in Qtp How is it used? pls
gimme in detail

Answer Posted / anjireddy.idamakanti

It is used to generate steps in the Test pane without click
on start Recording.
Step Generator consists of statements in three categories
such as
(i) Functions
(ii) Utility objects
(iii) Test Objects.

(i) Functions

This category specifies all general and mathematical
operations such as left, right, len, time, cint, cdbl, cstr,
ltrim, rtrim, trim etc.,
(ii) Test Object
This category specifies the operations which are performed
on the objects such as Set, Select, Activate, SetSecure,
Click, GetVisibleText, GetROProperty, GetTOProperty,
GetItem, GetItemCount, GetContent …. Etc.,
(iii) Utility Objects
This category specifies all miscellaneous operations such as
DataTableOperations, SystemUtil Operations, QCUtil
Operations, Recovery Operations etc.,

Ex

Prepare script for calculation Test in Application Flight
Reservation
Option explicit Dim x,y,tot,i
For i = 1 to 5 step 1 Window("Flight Reservation").Activate

Window("Flight Reservation").WinMenu("Menu").Select
"File;Open Order..." Window("Flight
Reservation").Dialog("Open Order").WinCheckBox("Order
No.").Set "ON"
Window("Flight Reservation").Dialog("Open
Order").WinEdit("Edit").Set i Window("Flight
Reservation").Dialog("Open Order").WinButton("OK").Click
x = Window("Flight
Reservation").WinEdit("Tickets:").GetVisibleText()

y = Window("Flight
Reservation").WinEdit("Price:").GetVisibleText() y=mid(y,2,
len(y)-1)
tot = Window("Flight
Reservation").WinEdit("Total:").GetVisibleText()
tot=mid(tot,2, len(tot)-1)

If cdbl(tot)=cdbl(x) * cdbl(y) Then

reporter.ReportEvent micPass, "Calculation is correct",
"Test is Pass" else

reporter.ReportEvent micFail, "Calculation is not correct",
"Test is fail"

End If Next

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Hi friends did any budy attend accenture system test for qtp? if any budy pls drop questions.not only accenture any other mnc company which you attended system test(QTP)?it may helpful to others also

1862


Hi am New to Automation Testing , any one can you help me what are the basic questiion are asked an interview?

1421


hi i have 4 yrs exp in manual and automation testing using QTP i need sample resumes plz can u send this mail id pbre1980@gmail.com

1409


How to find Operating system information using QTP script?

568


hi, can u tell me the QTP TEsting process in present real time companies?(beware of this... now a days Recording is not using,, only DP) and don't tell note book answers like step 1 spep2....like this .......post answer with professional skills in simple english words) thank u

1322






What are the recording modes in qtp?

579


Hi this is chandra if any one have Navigation of LAB QTP, I want Navigation of those tools, if any one have the and know the Navigation each and every part of the QTP, plz send me my mail naruboinac@yahoo. com,naruboinas@ gmail.com

1444


How can you exit from an action?

610


how do u plan test automation?

1439


How to run an integrated test scenario using Multiple Actions? How to use the QTP Step Generator?

3441


How to check bitmap output value?

624


Hi Frenz... I would like to take up the QTP certification . Can anyone tell me what is the procedure. n if anybody have the study materials pls fwd it to jkpunathil@gmail.com

1494


Have you done batch testing in qtp? If yes how you are doing?

505


How to create scenario selector

1477


unique properties of button,edit box, radio button,check box?

3818