What is the real use of different actions in QTP

Answers were Sorted based on User's Feedback



What is the real use of different actions in QTP..

Answer / maruthi

Hi..take a simple example.
Test1:has a scenario like this
a)login
b)compose a mail
c)logoff

and Test 2: has a scenario like
a)login
b)delete a selected mail
c)log-off

so if u create login as one action and log-off as another
action in Test 1 then these two actions can be used in Test
2 instead of creating two actions again.

Is This Answer Correct ?    3 Yes 0 No

What is the real use of different actions in QTP..

Answer / pravati

we use diff actions to devide the different functions in diff actions.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

How to "Turn Off" QTP results after running a Script?

4 Answers  


how to click the link in webpage by using QTP Script????????

3 Answers  


How to Parameterize Object repository in QTP?

1 Answers  


how and what kind of vb functions do us ein QTP?

2 Answers   Ordain Solutions,


Hi, I have a login page. To login in that page I need to have a valid username and password, which is stored in database. I imported that table to my DataTable in QTP (Global sheet). Now I need to write a code in qtp so that I can login only with valid username and data. my condition is : I want to get username and password from inputbox(which i did) and click on login button- which should verify the datatable for username and password and if value is present only then lofin else stop the testing. DataTable contains columns : LoginName and Password Code: Rowcount= DataTable.GetSheet("Global").GetRowCount msgbox "RowCount= " &RowCount,1 CurrentRow= DataTable.SetCurrentRow(1) Do Browser("").Page("").Frame("Frame").WebEdit("ctl10$ct l00$ctl00$UserName$ctl").Set DataTable("LoginName",1) Browser("").Page("").Frame("Frame").WebEdit("ctl10$ct l00$ctl00$Password$ctl").Set DataTable("Password",1) Browser("").Page("").Frame("Frame").Link("Login").Cli ck CurrentRow=CurrentRow+1 Loop Until CurrentRow>Rowcount Can anyone help? Thanks, Priya

3 Answers  






any challange that faced in your project? (please give me some examples in your project?

1 Answers  


How to load the object repository at run time?

1 Answers  


QTP 9.2, Issue: Creating Shared Object repository. I recorded 2 scripts. I exported the Object Repository to a shared location for the first script. Associated the exported repository to the first script and deleted the Local Repository for the First Script. Now Opened the Second script and try to Add the Local Object Repository of 2nd Script to Exported Object Repository. But I fail. Can anyone please help in providing steps that need to be followed in creating a shared object repository? Thanks in Advance.

3 Answers   Google, UHG,


How to connect to oracle(sqlserver) database to QTP

3 Answers   CTS,


To count the no of links present in the yahoo home page i have written the script like this Set fileSysObject=createobject("Scripting.FileSystemObject") Set linksFileName=fileSysObject.opentextfile ("D:\samplelinkfile.txt",2,true) Set linkDescObj=description.Create linkDescObj("micclass").value="Link" Set noOfLinks=browser("yahoo").Page("Yahoo! India").ChildObjects(linkDescObj) For i=0 to noOfLinks.count-1 linkName=noOfLinks(i).getROProperty("name") linksFileName.writeline(linkName) Next linksFileName.close Set fileSysObject=nothing While running the script it showing error that object "yahoo"isnot found in the object repository. Is there any setting before running the script? if yes what is the steps for it.Im using QTP9.0

2 Answers  


What are the different attributes used with regular expression?

0 Answers  


Without QTP (or any Testing tool) can we able to test the GUI part of the Applications. for Example generating the Scripts in Notepad and Executing them Using VB. Is it Possible to do so..

2 Answers  


Categories