Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[UFT] Fixed web tests with dynamic parts
#1
Not Solved
Greetings,

I am coming from a year of Telerik Test Studio and now looking at HP UFT solution for our project for about a week now. I have stumbled upon a problem that other testing tools also tend to struggle with - dynamic urls. Our url is in a form of <hostname>/controller/action/<order hash>/ where hostname would be parametrized and orderhash should be ignored. So far I have not found a way to make UFT ignore order hash.

Exact problem is that in action that uses one of these pages at first (recorded) run Page object can be found but when hash changes UFT no longer matches the page. Using object repository and setting Create new Page test object for Different test object descriptions but that did not help. I tried to look up to what UFT matches the Page but there seems to be no such method to do so. I tried using a different approach using direct descriptive matching but that just renders object repository useless and hence the reusability of testing locators.

This is really stopping the testing as objects can not matched so if anyone has any hints on how to solve or work around this problem I would be very much grateful.

Best regards,
Janez

edit: updated title with uft
Reply
#2
Not Solved
Hi Janez

send me the screenshot of the forms which you want to write the script i hope that i may help you in finding a solution for the problem
Reply
#3
Not Solved
Hi vinod123,

Thank you for answering so fast. There is not much to screen-shot really. Imagine adding an item to cart and that takes you to link: http://example.com/checkout/delivery/01234567890abcdef/. There you select delivery and get redirected to payment page that is on http://example.com/checkout/payment/01234567890abcdef/.

As far as I understand UFT matches objects on to Page object which matches that url for each page. This all works well until I close browser and restart the process. In that case the hash might be "fedcba9876543210". Now UFT no longer detects the Page object as present as the URL has changed.

I hope I could explain this clear as I am not a native speaker but please let me know otherwise.
Reply
#4
Not Solved
I am working on it i will send solution as soon as possible
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  UFT 14.53 not able to record steps of web application rupesh doshi 3 2,922 10-10-2019, 01:50 PM
Last Post: rupesh doshi
  Run Button is not available in QTP 11 - while running tests from QC 11 Kannan R 0 1,910 08-13-2013, 08:15 PM
Last Post: Kannan R
  cannot open QTP tests learnasugo 8 9,349 10-18-2012, 11:28 AM
Last Post: Ankesh
Exclamation Running the tests in Firefox dol_fin 3 8,083 03-01-2012, 11:35 PM
Last Post: inborntester
  How to pass values between different tests in QTP vijaya.t 6 16,673 01-30-2012, 11:09 AM
Last Post: mrajeshtnl

Forum Jump:


Users browsing this thread: 1 Guest(s)