What is the difference between data driven framework and keyword driven framework?
How to handle capturescrrenshot in different browsers at a time in selenium
Example: we verify one email and password is valid or not.? If user is invalid take screenshot. this task is verify in different browser at a time..
By using selenium grid
What is the advantage of using shared object repository in QTP?
But Shared repositories reduces the performance of the execution
we can create repositories in qtp two types 1.repository in descriptive programming(user define repositories) 2.repository in record and playback(system define repositories in DP we can convert whic...
What is the command in QTP to invoke ie brow?
SystemUtil.Run
There are three ways to invoke IE browser and launch a website from QTP. 1. First we use the method called as "InvokeApplication" Syntax: InvokeApplication "Path" Example: invokeapplication ...
Hi Iliaz,
I have done the same setting which you have mentioned here. but still getting the same problem. My laptop has Win7. All other parts of the QTP is running well in my laptop. I am naggling with this problem plz help me on this.
Points to note on this case:* Check that the Qtp application is should open first and then next open the application to test.* Check that the supported plugins that applicable for the application shou...
Hi, i am a beginner in QTP and I am learning by myself. My question is how to create a script in QTP and then enhance it (the scripts) with vbscripts. I am really confused. Please throw some light as I really want to learn QTP
Using object spy you can fetch SOE object properties and also method associated with it. Using simple modification you can generate VB Script
U can enhance the script if u know VB Scripting language .
What is the file extension of the code file & object repository file in QTP?
Answered by: Vijaya Kumar B
Answered On : Aug 2nd, 2005File extension of
-- Per test object rep :- filename.mtr
-- Shared Oject rep :- filename.tsr
Code file extension id script.mts
.tsr means Test Shared Repository.
File extension of code file in QTP is .mts
Without recording objects in object repository are we able to run scripts?
Recording option not available in the real time.. do you know? We can able to run the script.
QTP interacts with application using object properties. There are two different approach in QTP to use object properties - 1. Object Repositories 2. Descriptive Programing. Irrespective of which one ...
data driven testing is a term that describes testing done using a table of conditions directly as test inputs and verifiable outputs as well as the process
Data Driven Testing means taking the data from external files like excel sheet or Database and performing testing on the application with the help of datatable threw QTP dynamically on the application...
How to test cross browser testing in QTP?
As per my knowledge QTP supports ie and ff,how to test remaining other browser? how can I answer this question.
You will need to create separate Actions which take care of different OS and Browsers Cross Platform Testing: Using the Built in Environment Variable you can dig up the OS information. Eg. Platform...
Hi, my project is in c++.It is window based application.I want to use QTP to test application. please let me know,which free trial version is available and compatible with C++ window application ? thanks, amrita
What is index property in descriptive programming?
Could you explain, why is it bad practice to use index property in descriptive programming?
1. get cell data using webtable("webtable").getcelldata(row,column) and we can click the link
2. Get all the links count in the webtable and click the link
Hi Lokesh,
Can you please elaborate your answer with example, how an index property negates the DP?
Where can I found the broken links in QTP?
There can be two ways to find this 1. Through QTP Explained below and the other one is 2. Manual In Menu Bar Go to Tools > Options > Web > Advanced and check the two boxes labeled Create a ch...
try this once
if u want delete just write "deletefile" and path for creating "createtextfile" and pathCode
set fso=createobject("scripting.filesystemobject") set fo=fso.opentextfile("give the ath")
I was not able to execute the above code,It is throwing error WSript object is required.
How to make an user-defined function reusable?
Here is the function: "vb Function launch() bro="C:Program FilesInternet Exploreriexplore.exe" url="http://127.0.0.1:1080/WebTours/" invokeapplication(bro&" "&url) End funct...
By encapsulating frequently performed or complex operations which is used several times in the script we can make the user defined functions reusable, SQL statements or scripts become easier to write, understand, and debug with the help of used defined functions.
How can we select multiple rows in a webtable?
How can we select multiple rows in a webtable which has no checkboxes to click and select? webtable does not have check box to select. Application has pagination done, so per page the webtable shows 500 rows. To select one row, we need to just click on the specific row at any location. to select multiple...
suppose we take yahoo site in yahoo site if u want 1st row 7th column data....like shown below: write log in code first then click inbox then get the cell data "vb with browser("...
hi, i will tell my understanding not sure whether it is perfectly correct or not but i want to share.. u said u have say 50 rows in a webtable with no check boxes. first of all pls spy the rows or try...
Give one example where you have used regular expression?
as per nitin answer i agree but we can use regular expression in test cases also how it is like shown below: if we have lengthy statements in test cases we can use this for ex:in testdata alphanumeric...
Code
pattern=""[a-zd*]"
How many actions can be created in a QTP script ?
it is 255 only... why because... Each action should contain one action sheet in data table....but the data table can have only 256 sheets..one is already assigned as Global..so remaining will b...
Theoritically we can say that there is no limitation in creating Actions in QTP.But Microsoft Excel supports only 256 sheets. A seperate local Data sheet will be created for every action. ...
What is the username and password QTP provided default web application
mercury, mercury
How would you click on a link in QTP?
Note: properties are not known in a webtable? Can someone clearly explain this?
Hope, it is difficult to develop a script if the properties is unknown, but we can try with standard properties, like if property is a LINK then it can be attach the name or type property with "link" ...
Very simple answer: In Pure Data Driven framework : scripts related to application under test are hard coded, data is in some where in DATA TABLE/Arrays/Dict Objects/Excels... In Pure keyword driven...
Data-Driven Testing Simple test scripts have test data embedded into them. This leads to a problem that when test data needs to be updated actual script code must be changed. This might not be a big d...