Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Regd Run time field change
#1
Solved: 11 Years, 3 Months, 3 Weeks ago
Hi all,
i am a beginner and i have query.
i am trying to write a qtp script for a website field which changes at run time. so can some one tell me hoe to processed the script.
Reply
#2
Solved: 11 Years, 3 Months, 3 Weeks ago
can you tell me what field exactly changing in Web page. Using Reg expression we can change this...
Reply
#3
Solved: 11 Years, 3 Months, 3 Weeks ago
Consider a web site gets input like first name middle name last name dob etc... when i record and play back i found that these fields are changing every time. i mean the property values which i capture via object spy changing
Reply
#4
Solved: 11 Years, 3 Months, 3 Weeks ago
There must be some property, which will stay same. Say for example nativeclass, create description using that property.
OR
Record entering the value into that field multiple times, you may get some idea.
Reply
#5
Solved: 11 Years, 3 Months, 3 Weeks ago
Ans:
Hi,
If a field value is changing at run time then you can do like this :
1-If the webTable Value is changing,then you can use the GetCell data of that webtable and compare it with your datatable values.

Ex:
Code:
Browser("Browser").Page("Page").Frame("content").webTable("Webtable").Getcelldata(rows,columns)
.

2-If your browser or page is changing then you can use Regular expression for that(.*)
Ex:
Code:
Browser("name:=Browser.*").Page("name:=Page.*")........

Thank you
Reply
#6
Solved: 11 Years, 3 Months, 3 Weeks ago
Hi ,

Yes it happens many times while using qtp . For that you need to go with some options like using of Regular expression( .*) .It happens due to the Browser of the application ,which may not be recognized by the tool if it gets upgrade.

For example:
Code:
"   Browser("Browser").Page("Page").Webedit("UserID")."

So sometimes the Name of the Browser (or) the Name of the Page may get change, like Browser("Browser1")gets changed from Browser("Browser").

For this you need to use Regular Expression. Like:

Code:
" Browser("name:=Browser.* ").Page("name:=Page.* ").Webedit("UserID")."

There is a button called "Object Spy" in QTP tool . Always try to use Spy button to know about the changes in Browser ,Page ..etc in the application.

Thanks
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How do you Change Run mode mid script? Caleytown 6 7,192 03-25-2021, 08:27 AM
Last Post: RB26578
  getting the value from the field learning 0 1,037 03-19-2019, 09:13 AM
Last Post: learning
  [UFT] Change property of object (WpfButton) robertosalemi 2 2,614 11-22-2016, 12:43 PM
Last Post: Ankur
  QTP not recogonising object during run time Lavanya N 2 3,723 10-28-2015, 12:46 PM
Last Post: vinod123
  Writing to Run time data table Neetha 5 12,163 08-27-2015, 10:18 AM
Last Post: supputuri

Forum Jump:


Users browsing this thread: 1 Guest(s)