What are test objects and run time objects?
Answered by: Satyesha
Member Since May-2009 | Answered On : Mar 29th, 2011
Hi,
test Objects: Any object on which you are going to perform testing, on the basis of recorded object descriptions by QTP is called test objects.
To Identifying a test Object there are two types of Properties i.e.
1.TO Prop: (Test Object Properties)-These are the Object properties captured by QTP
in the form of Object repositories, durring recording of script/or added by you to code in case of a descriptive code.
2. RO Prop:(Runtime Obj Properties) -These are the properties which will be attain by an Object in the real time/Run time of  application Under test.
Note:While playing back an script Qtp will compare To properties stored in ORs with the RO properties if a suitable match found then Qtp will perform the recorded Action of that object else throw an exception.
Objects are those which QTP identifies to run a test on. Test Object: Objects present in object repository. These can be edited and are not dynamic in nature. Run Time Object: These are the objects ...
Hi,test Objects: Any object on which you are going to perform testing, on the basis of recorded object descriptions by QTP is called test objects.To Identifying a test Object there are two types of ...
How to identify an object whose name changes with time?
Answered by: madhu dasara
Answered On : Jun 29th, 2006use regular expression for the object name
use regular expression for the object name
How to run a QTP test set stored in quality center server from command line?
Answered by: Steiner
Member Since Oct-2008 | Answered On : Oct 1st, 2008
You need to use the quality center OTA API - you can read the documentation by going to quality center Help->Documentation Library, and under API References, click HP Quality Center Open Test Architecture API Reference (you will need to download this file to your local hard drive probably, since there is some XP patch that will not allow you to open CHM files from an external server). If you go to the index and search for "StartExecution Method (TestSet)", there is a very nice example at the bottom that shows you a vbs script that you could use to run a test set on your local machine, planned host, or a remote machine. Copy this code to a .vbs file, and execute that with the arguments you need. Let me know if you need any other info about this.
You need to use the quality center OTA API - you can read the documentation by going to quality center Help->Documentation Library, and under API References, click HP Quality Center Open Test...
If ur script into QC , Then U can't run the thru command line... but if script stored in to local system then u can run command mode Ex: Wscript (filename.vbs)
How to automate Oracle application using QTP.
Answered by: Srinivas Potnuru
Answered On : Jun 6th, 2006The Prerequisit for Automating the Oracle Application is that You should have a Oracle Add - in for QTP.
After that we need to open the oracle applications and then start recording the oracle Applications.
The only difference between the Web Based and Oracle Applications is that wou will have different objects for the Oracle Applications like
1) OracleTextField.
2) OracleFormWindow.
3) OracleFlexWindow.
4) OracleNotification.
etc....
The Prerequisit for Automating the Oracle Application is that You should have a Oracle Add - in for QTP.After that we need to open the oracle applications and then start recording the oracle Applicati...
Write sample code of descriptive programming for yahoo login form?
Answered by: srinivas potnuru
Answered On : Jun 12th, 2006This is the code for Yahoo Photos Website you can do the same for the yahoo by changing the values in the required places. CODE: Browser("title:=Yahoo! Photos*.*") .page("title:=Yahoo! Photos*.*") .WebEdit("name:=login") .set "srinivas" Browser("title:=Yahoo! Photos*.*").page("title:=Yahoo! Photos*.*").WebEdit("name:=passwd").set "test"Browser("title:=Yahoo! Photos*.*").page("title:=Yahoo! Photos*.*").WebButton("name:=Sign In").click
Hi Srinivas,
If you have any documents related to "Descriptive Programming", Can you please send those documents. I am in urgent need of that document.
Thanks in Advance,
Prasanna Laxmi
This is the code for Yahoo Photos Website you can do the same for the yahoo by changing the values in the required places. CODE: Browser("title:=Yahoo! Photos*.*") .page("title:=Yahoo! Photos*.*") ...
What is per action and shared recording?
Give advantages and disadvantages of per action and shared ?
Answered by: srinivas potnuru
Answered On : Jun 9th, 2006Hi,
Both Per action and shared has its own advantages and disadvantages.
Per Action:
 When we  Record by setting the repository to Per action each and every action will have its own repository. So each action will be independent with the other action w.r.t the Object Repository.
Shared:
When we record by setting the Object Repository to shared mode, all the actions in that particular Test can use the same Shared Object Repository . i.e there will be only one repository which contains all the objects that are required across all the actions.
I am giving this as per my Knowledge there may be some more as well...
| Type | Advantages | Disadvantages |
| PerAction | The actions can be reused and as the repositories are individual there wont be any problem with the Objects. | If there are few objects that are being used in more than one action then there will be a duplicate occurence of the object in the object Repository as the object repositories are different for different actions |
| Shared | There will be only one Object Repository and can be maintained easily | |
| Shared | Even if there is a need of using same object in more than one action, then there will be only one occurrence of the Object in the Object Repository.As the Object Repository is shared. |
         Â
Hi,Both Per action and shared has its own advantages and disadvantages.Per Action:  When we  Record by setting the repository to Per action each and every action will have its own repository. So ea...
Is there any frame work for descriptive programing
QTP is not identifying any object in the application so I thought of going to descriptive programming how do u use this with the frame work which is already existing? And more features to use descriptive programming?
Answered by: Srinivasaraomunagala
View all questions by Srinivasaraomunagala View all answers by Srinivasaraomunagala
Member Since Jul-2007 | Answered On : Jul 31st, 2007
There is no specific frame work for the Descriptive programing. When the qtp is not able to recognize the object we need to go for Low level recording. It will treat the object as winobject/webobject
Hi all,I know how to create a checkpoint to an object in keyword view using recording and active screen of application.I tried to create a standard checkpoint to an object in expert view using d...
There is no specific frame work for the Descriptive programing. When the qtp is not able to recognize the object we need to go for Low level recording. It will treat the object as winobject/webobject
How do you automate the user login to web application ?
In QTP, how can I call different users to logon to a web application under test, one after the other? (in a while loop)i will appreciate your help.Thanks,
Answered by: srinivas potnuru
Answered On : Jun 13th, 2006Hi,
there are so many ways
1) Keeping the usernames and passwords in 2 arrays and then looping them
as below
usernames =array( "test1","test2","test3" )
passwords = array ("pass1","pass2","pass3")
i = 0
iCount = ubound(usernames)
do While (i <= iCount)
'code to set the username password in the application and do the other steps as well so that u can again enter the username and password in the application
i=i+1
loop
2) Keeping the values in the Datatable and doing the same using datatable functions.
Hi,there are so many ways1) Keeping the usernames and passwords in 2 arrays and then looping them as below usernames =array( "test1","test2","test3" ) passwords = array (...
How to write code in the expert view for a search engine?
Pl. I need help in writing code in the expert view for a search engine. As we search ex: 'apple' it gets a search criteria with (1 2 3 4....Next) pages. So it suppose to click the "next" button until "next" is disable. As i'm doing data driven for search criteria by recording with clicking 5 times "next"...
Answered by: Guest
Answered On : Jan 12th, 2007You can use object spy to get the name of the first page number (i.e. the "#1" button string will have either a 1 or a 0 in its string.)
Then you can change this to a variable(say "x") and then use descriptive programming for the string.
You will then have a Loop statement (preferably a For...Next Loop) to check on the max number of page number links that are available on the primary screen (say 5 is the max) and see if "Next Button" is still high lighted.
If it is, click on next after reaching 5 till "Next button" is disabled or does not exist.
When Next button is disabled, the Value of "x" is the total number of result pages(ie if the #1 link starts with a logical number of 1) and x +1 if the #1 link starts with a logical number of 0.
You can use object spy to get the name of the first page number (i.e. the "#1" button string will have either a 1 or a 0 in its string.) Then you can change this to a variable(say "x") and then use de...
What are the advantages and disavantages of QTP over rational robot and which one is better?
Answered by: md_vinodh
Member Since Apr-2008 | Answered On : Jun 30th, 2008
Hi,
All Testing tools are best , each one of them have their own advantages and disadvantages.
Please find your Requirements, Time, Cost and other external factors, which one fullfil your requirements, it's best for you ....based on that choose the product
Let me know
Regards
Vinodh M
Hi,
All Testing tools are best , each one of them have their own advantages and disadvantages.
Please find your Requirements, Time, Cost and other external factors, which one fullfil your requirements, it's best for you ....based on that choose the product
Let me know
Regards
Vinodh M
How is automation used in QTP for regresstion testing ?
Answered by: mana.kare
Member Since Jan-2007 | Answered On : Aug 16th, 2007
Hi,
I am giving an expample of regression testing.
Example:
We have a "Yahoo" web application. Suppose if yahoo is going to add a new features in their application it has to verify the existing web page along with new features. If it is adding new features for every two months, it has to test existing and new features every time. The repeated testing is nothing but regression.
(means the new functionality does not effect on the existing functionality).
we are using QTP to test the existing functionality is working proprly or not.
Regression testing is the testing done to verify the defect fix. For example if you encountered a defect and report to a developer and developer fixed it and deliver the code again, then you verify that the defect is fixed. This testing is called as regression testing. I hope you understood.
Hi,I am giving an expample of regression testing.Example:We have a "Yahoo" web application. Suppose if yahoo is going to add a new features in their application it has to verify the existing...
How do you test Java tree objects ?
Answered by: Taji
Answered On : Jun 24th, 2006For testing Java Objects you need to install an additional Java Plugin. This will enable QTP to identify java objects. This should also solve the java tree problem. if you already have installed the java plug-in and asking for a method to test java tree objects, there is no single answer i can give. but you might have to apply your own logic through descriptive programming.
Hi
Thanks for the answer
I have installed java plugin object and have tried to give a call to the java object tree
I just want to expand the Tree node
please can you send a small sample code which tests the Window explorer
regards
Prashant
For testing Java Objects you need to install an additional Java Plugin. This will enable QTP to identify java objects. This should also solve the java tree problem.if you already have installed the ja...
How to record Java application in QTP 8.2?
Answered by: santosh
Answered On : Jun 28th, 20061)First install java-addin along with QTP.
2)Set the reqired properties for objects to identify the objects in Tools..>Object identification(Mandatory and assistive properties)
3)Test--->Click Record-->Select javaoption.or click F3.
The script will come as..
Javawindow("").JavaInternalframe("").Javalist("").Select""
Hi Santosh,In Object Identification, there are two Properties to be added-1)Mandatory 2) Assistive. First of all we cannot add the same properties in both. They must be different. I have added all the...
Explain about sync with an example
Answered by: ch.bhaskar.mca
View all answers by ch.bhaskar.mca
Member Since Oct-2007 | Answered On : Apr 6th, 2011
Hi,
As the name specifies, "Synchronization Point" is nothing but to say QTP to wait till some specified condition occurs. You can specify the conditions.
We need Synchronization Point because we are always not sure how much time it takes for an Object to get loaded to a page/window.
Let's take an example of "Login" page of any application. You want to provide "UserName" in the UserName field after opening the site via QTP.We can provide value only after "UserName" field is visible. But sometime it may take 10 seconds for the "UserName" field to be appear in the Login page. Sometime it may take 30 seconds (Depends upon the internet speed).At this point QTP script fails as the object is not displayed in the page. So here what we do through "Synchronization Point" is to tell QTP to wait untill the "UserName" field appears on the page, may it take 10 secs or 30 secs.
There are 2 ways (for Web Application) you can acheive this as follows:
Quote:> Browser("").Sync (Only in case of Web App) : QTP waits untill all the objects are loaded to the BrowserFollowing is an example of "WaitProperty"
> WaitProperty (Any type of App) : QTP waits untill the specified condition is satisfied
Quote:Syntax: Object.WaitProperty "Property Type","Property Value",TimeOut
Ex: Browser("Login").Page("Login").WebEdit("UserName").WaitProperty "visible",True,20000
Browser("Login").Page("Login").WebEdit("UserName").Set "bhaskar"
Hi,As the name specifies, "Synchronization Point" is nothing but to say QTP to wait till some specified condition occurs. You can specify the conditions. We need Synchronization Point bec...
How to count number of links in a web page using QTP?
Answered by: calvin_29
Member Since Sep-2010 | Answered On : Sep 20th, 2010
This is the script, We should first create an object
set oDesc=description.create()
'prefer descriptive programming...batter
oDesec("micclass").value="link"
'get all child objects in an variable
set oLink=browser("name:=.*").page("title:=.*").childobjects(oDesc)
'count all links
intC=oLink.count
'Use print or msgbox or 'reporter.reportevent'
print intC
'it glows links in the web page
for i=0 to intC-1
oLink(i).highlight
next
set oLink=nothing
set oDesc= nothing
'Offer me comment if it works properly
By using Description object, which contains a 'mask' for objects we would like to get we can count number of links. Set oDesc = Description.Create()oDesc("micclass").Value = "Li...
For counting the number of links in webbased
set obj=description.create()
obj("micclass").value="Link"
set Links=browser().page().childobject(obj)
NumofLinks=Links.count-1
for i=0 to Links(count)-1
Links(i).select i+1
Next
How to find the number of webbuttons in a screen while runtime?
Answered by: amereetto
Member Since Jul-2007 | Answered On : Mar 27th, 2011
Hi,
Hi,Below is the example to find the number of WebButtons in a page. I have have coded iot for Google page:Dim oDesc 'Description ObjectDim colObject 'Object CollectionSet oDesc = Description.C...
How to connect QTP to quality center?
Answered by: Satyesha
Member Since May-2009 | Answered On : Mar 29th, 2011
Hi,
We can connect to QC from QTP through QTP File options or direct Icon on QTP window.
Go to your QTPÂ File->QC connections->Provide the Server URL->Login credentials->Project and Domain details to which you want to connect.
Note:Check the Option to Auto connect to QCÂ with each QTP session , in order to avoid entering these details again & again.
Hi,We can connect to QC from QTP through QTP File options or direct Icon on QTP window.Go to your QTP File->QC connections->Provide the Server URL->Login credentials->Project and Domain details to ...
How to write QTP results to a text file or an excel file ?
I need to write the QTP results to a text file or an excel file as I don't want to see the results in QTP results window.Please can anybody provide the exact code for iturgent...............................Thanks in advanceuday
Answered by: srinivas Potnuru
Answered On : Jun 6th, 2006Hi all,
We actually have few functions to add the results to the Excel File instead in the QTP Results Window.
Solution description: We will be using a seperate Sheet by name "Results" in which the Results of the Test will be appened.
There are 2 functions
1) initOutExcel(sTablePath)
Description : This function is to initialize a particular Excel Where you want to update the Results of the QTP Tests.
2) WriteResults(sTablePath,sStatus,sFunctionality,sDescription)
Description : This function appends the Result of a Test to the end of the existing results.
You can modify the below functions to suite your requitrement.
CODE:
Function initOutExcel(sTablePath)
Datatable.addSheet "Results"
Datatable.importSheet sTablePath, "Results","Results"
iParamCount = Datatable.getSheet("Results").getParameterCount
if iParamCount = 0 Then
Datatable.getSheet("Results").addParameter "S.No",""
Datatable.getSheet("Results").addParameter "Status",""
Datatable.getSheet("Results").addParameter "Functionality",""
Datatable.getSheet("Results").addParameter "Description",""
End If
Datatable.ExportSheet sTablePath,"Results"
End Function
Function WriteResults(sTablePath,sStatus,sFunctionality,sDescription)
Datatable.addSheet "Results"
Datatable.importSheet sTablePath, "Results","Results"
iRowCount = Datatable.getSheet("Results").getRowCount
Datatable.getSheet("Results").setCurrentRow(iRowCount+1)
Datatable("S.No","Results") = iRowCount+1
Datatable("Status","Results") = sStatus
Datatable("Description","Results") = sDescription
Datatable("Functionality","Results") = sFunctionality
Datatable.ExportSheet sTablePath,"Results"
End Function
Hi all,I want to update a detailed Test Result report to Td, i dont want to save all the test cases results in to one folder. I want to display the test case name as the TEst Name (not the script name...
Can somebocdy explain how to specify the parameters needed to call these functions?
Object name is changing while executing test in QTP
When I am recording in QTP the object name of the text box is text1 and it is changing while I am executing. Whenever I am opening the login window it is assigning new names if it is like this how can I test the application
Answered by: b.sainarayanarao
View all questions by b.sainarayanarao View all answers by b.sainarayanarao
Member Since Oct-2007 | Answered On : Oct 23rd, 2007
go to Resources menu-Object Repository-select the particular text object in left window pane. In right window pane select attached text column field value, a browse icon ('<#>') becomes visible and click on it and select Regular expression checkbox (click on 'No' option in a appeared dialogbox) and exactly in the place of 1 write as [0-9]*
example: text 1 'before replacement
text [0-9]* 'after replacement is valid
text[0-9]* 'after replacement is not valid because no space in between text and regular expression
go to Resources menu-Object Repository-select the particular text object in left window pane. In right window pane select attached text column field value, a browse icon ('<#>') becomes ...
Hi
You can test the window by using regular expression.
Editorial / Best Answer
Answered by: Brahma Sagar Gunda
View all answers by Brahma Sagar Gunda
Member Since May-2006 | Answered On : May 5th, 2006
The following list the Operating Systems that QTP supports, please refer:
- Windows 2000-Service Pack 3 or Service Pack 4
- Windows XP-Service Pack 1 or Service Pack 2,
- Windows 2003 Server.
Note: QuickTest Professional is supported on Windows XP Service Pack 2 only if the execution prevention mechanism (also known as DEP-data execution prevention and NX-no execution) is not activated
I believe this answers your questions and will thereby close this service request. Should you require further clarifications, please do not hesistate to let me know. Thanks.
Regards,
Brahma Sagar
Hi Vish,
Kindly install microsoft script debugger and then restart the QTP.
Regards,
Gaurav
Yes it true that QTP works on Windows OS only but it works fine on browsers others than IE as well(Mozilla Firefox is supported)