I have a WebEdit Object.It is added in object repository.It
has two properties Name and Index.In the next release the
Name Property is same but the index property is
changed.when i run the script will the script Pass or Fail
Answers were Sorted based on User's Feedback
Answer / rentalavdml
I dont think it would fail.QTP fisrt checks for mandatory
properties,after that assistve and finally goes for ordinal
identifier.Here in this scenario we can recognise the
object by name itself so no point of index.
Is This Answer Correct ? | 6 Yes | 3 No |
Answer / kishan
Name is usually under Mandatory Property of a webEdit Element.
Eventhough the Index property changes, as QTP Intially Use
the Mandatory Property(name)to identify the object,
case 1:
*******
if that name property is unique in that webPage then QTp
will definetly identify that webEdit object without any fialure.
(I have checked it even by making smart identification false
+ Index property : changing(1 to 12). still QTP is able to
identify the object properly w/o any issues.)
case 2:
******
If web page has 2 objects with same properties then we
should use index property. This time script will fail if we
dont specify correct index value.
Is This Answer Correct ? | 2 Yes | 0 No |
Answer / gopal reddy
It will pass because the QTP would use its SMART
IDENTIFICATION if it is enabled by you otherwise it will
fail...
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / deepakm82
It will pass because the QTP would use its SMART
IDENTIFICATION if it is enabled by you otherwise it will
fail...
Is This Answer Correct ? | 2 Yes | 2 No |
Answer / sureshsinghbhandari
It will Pass.
Reason-
For WebEdit the Mandatory properties are
html tag,
name and
type
If these are same then on Runtime the QTP will recognise the
object by these (in our case "name" prop) and Script will pass.
Note-
QTP Learns the Properties in the Following Sequence
1. First of all QTP learns the complete list of mandatory properties and then it will check whether these properties are sufficient for identifying the objects uniquely.
2. If it sufficient it will stop learning otherwise it will learn the first assistive properties and then it will once again check whether these properties are sufficient are identifying the object uniquely.
3. If it feels not sufficient then it will learn the second assistive properties once again it will check whether these properties are sufficient if it feels not sufficient the above processor continue till the QTP feels satisfied or up to the end of the assistive properties list.
4. If it is still feels not sufficient then it will learn the ordinal identifier.
Is This Answer Correct ? | 0 Yes | 1 No |
Answer / venkat reddy
I will Fail
to handle that scenario u have to use regular expressons
Is This Answer Correct ? | 0 Yes | 7 No |
What are parameterizing tests?
Diff b/w WEB TESTING AND Client server testing?
can we call a test in another test?
Analyzing the Checkpoint results ?
Hi All, I need code for how to execute qtp scripts from excell sheet
Hi, I am new to QTP testing and was exploring the frameworks used for automation. I wanted help in writing various scripts and files for keyword driven automation like 1. Control File 2. Test Case File 3. Startup Script 4. Driver Script 5. Utility Script . etc It would be great if someone can give help in this context ... Thanks
What is output value?
how to write script in qtp(vbscript)..i mean with out application deployed..and how to call script1 into script2?
8 Answers INCA, Infosys, Logix, SLK Software, Symphony, Wipro,
what is the extension for the test version of the script?
Hi I'm a beginner in QTP. So far I'm ok with Descriptive but stuck while implementing Hybrid Frame work. 1. I have created a Keyword file with .vbs ext set home=description.create home("title").value="Welcome to feests" set reglink=description.create reglink("name").value="register yourrestaurant / take away" set fbusname=description.create fbusname("name").value="business_name" set dispname=description.create dispname("name").value="display_name" set restchkbox=description.create restchkbox("name").value="restaurant" set cuiscate=description.create cuiscate("name").value="cuisine_categery1" set addline1=description.create addline1("name").value="address_line1" set pstcode=description.create pstcode("name").value="address_postcode" set cntry=description.create cntry("name").value="address_country" set mlandno=description.create mlandno("name").value="landline_no" set emailadd=description.create emailadd("name").value="email" 2. I have created an Function Library file as follows Function launch() bro="C:\Program Files\Internet Explorer\iexplore.exe" url="http://www.feests.com/" invokeapplication bro&" "&url Browser(home).page(home).Link(reglink).click End Function Function restregistration(karthik, teja, Ameerpet, UK) Browser(home).page(home).WebEdit(fbusname).set "karthik" Browser(home).page(home).WebEdit(dispname).set "teja" Browser(home).page(home).WebCheckBox(restchkbox).set "ON" Browser(home).page(home).WebList(cuiscate).Select "Indian" Browser(home).page(home).WebEdit(addline1).set "Ameerpet" Browser(home).page(home).WebEdit(pstcode).set "UK" Browser(home).page(home).WebList(cntry).select "United Kingdom" Browser(home).page(home).WebEdit(mlandno).set "023775347" Browser(home).page(home).WebEdit(emailadd).set "email@gmail.com" End Function 3. This is how I have called the keywords and Functions in QTP executefile"C:\Documents and Settings\karthik\Desktop\keywords.vbs" executefile"C:\Documents and Settings\karthik\Desktop\functions.vbs" launch restregistration karthik, teja, Ameerpet, UK, "email@gmail.com" Now the issue is, I'm trying to enter the email ID in WebEdit field. But I dont know what is the mistake I did, if I run the script in QTP it is showing following error Error: Expected identifier Line (2): "executefile"C:\Documents and Settings\karthik\Desktop\functions.vbs"". Can someone help me fix this, please!!?
Which scripting language used by quicktest professional (qtp)?
Hi I able to record IE object but not able to record mozilla firefox 3 object using QTP 10. i don know wats the problem????