Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Give me At Least 5 Differences between DOCUMENTATION OBJECT MODEL(DOM)and COMPONENT OBJECT MODEL(COM)? Interviewer said me to WRITE the difference only in points not as you WRITE a paragraph ???? only in points

2250


What are the major/ important methods, functions in QTP we use realtime testing

2804


Hi! My OTP script has several bitmap checkpoints included which I check in the test results xml file. The test is for SAP 4.7. I need to save these bitmaps to files or at least export them to the html file using the export function in the test results viewer. Could you please help me with this problem? Thank you in advance! Best regards, Peter

2670


What are the types of data tables in qtp?

1011


Differentiate the type of test cases which can be automated and which cannot be automated?

1036


suppose in the middle of the project QTP will not work properly, then what do u do? and ur team?

1847


desribe a situation where u faced a stressful situation and how did u cope with it

1863


what is the frame work in J-meter?

2145


What are the different kinds of test steps?

1103


how do u plan test automation?

1918


How does qtp identify gui object?

1019


What is Curd testing?

2326


Explain the difference between check point and output value?

1009


What is action?

997


What does it mean when a check point is in red color? What do you do?

1079