I'm quite new at QTP. Im doing a web-based app testing. I
create something new item and a new link is created in the
home page. This link is dynamic as it changes every 3
seconds. Obviously the new link is not in my Object Repo
and I am trying to find a way how can I do a check or get
the propery of the link I created. I can do it on keyword,
but I need to do a check on expert mode, vbscript. I always
get an error that is not identified whenever i try to check
it (browser(b),page(p).link(newlink). Any idea?
Answers were Sorted based on User's Feedback
Answer / qatechie
I think using descriptive programming can provide you a
solution.
Try to create a Description object for the link. Since the
url/link is dynamic, use the regular expression to find this
link on the homepage. I am not sure, if I answered your
question but think this as one possible solution.
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / saff5005
i thinck u need to enable smart identification mechanism
which identifes the object by its properties ,
so for doing this ,steps are as follows
1)Choose Tools > Object Identification. The Object
Identification dialog box opens.
2)Select the appropriate environment in the Environment
list.
3. Select the test object class you want to configure.
4. Click the Configure button next to the Enable Smart
Identification check box. The Smart Identification
Properties dialog box opens:
choose what ever properties u want to give to base filter n
optional filter .and then run the test
correct me if i am wrong
Is This Answer Correct ? | 1 Yes | 1 No |
Answer / pravati
use Descriptive dynamic programming and use the property in getroproperty which is same for every new link.also use smart identification,and Regular Expression
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / babu
Create a output value for that particular link and store it
in a Action/Gloabal Datatable. Store that link in to a
variable. Using Settoproperty, set that stored link value
to "Value" parameter.
Change the link name in the object repository as well and
pass the same link name to the link method.
Whenever the link is changed, that link will be stroed in
the datatable and the value will be set to the link object.
Is This Answer Correct ? | 0 Yes | 1 No |
What is the default add-ins in qtp?
In Keyword driven frame work you have write 30 test case for one scenario,in which 10 test cases are failed while executing.client asked you to execute only the failed test cases. HOw can you execute only failed test cases
In keyward driven framework what will be the step for yahoo login page ,inbox logout,plz explain in detail
Hi All, I need code for how to execute qtp scripts from excell sheet
how to retrieve the xml file data through qtp. can anybody send script for this..
How i can change shared repository to per test repository in qtp
How will you compare keyword and expert view?
how many test scripts we will write in qtp? very urgent. please??? Thanks in advance..
Explain how you can find length of array in qtp?
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!!?
In qtp what type of data tables are used , name and list out them
What are the Application Functions available in QTP?