SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Jan 2009
    Posts
    57
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    How to test if the data is dynamic

    Hello all,

    I am kind of new to QTP. I am trying to create the automated test script for a website. Can someone please help me with the problem I am having.

    I am recording a site where it looks for the flight prices every day. So when i complete the recording, and try to play back it again, the price keeps on varying the other day. So I am supposed to click on the price link, so when i play back it again the price is different from what it was recorded on the first day.

    So can some one help me on how to deal with the dynamic data. where it should look for the price and click on the price link which shows on that particular day.

    Any help will be greatly appreciated.

    Thank you.

  2. #2
    Member
    Join Date
    Oct 2008
    Location
    Cambs, UK
    Posts
    426
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How to test if the data is dynamic

    You need to identify the parts of the control that do not change and attach to those.

    Alternatively, you can get the raw HTML of the page and parse that, I have a function that does this:

    http://www.intellipro.co.uk/downloads/htmget.htm
    For an easy to use test automation framework, checkout my website:

    http://www.atomqa.com

  3. #3
    Member
    Join Date
    Jan 2009
    Posts
    57
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How to test if the data is dynamic

    Bill,

    Do you any scenarios where you had to deal with dynamic data, if so can you please send them. And can you please send any code you have for this kinda of data.

    Is it possible to deal with this kind of scenarios, where you have the data which changes dynamically every day, and QTP has to look for that data, in my case its a price link, so i click after it displays the price. How can I do this, is it in VB script in Expert view.

    Please can ou explain in detail, that would be helpful.

    thanks

  4. #4
    Junior Member
    Join Date
    Jan 2009
    Posts
    16
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How to test if the data is dynamic

    Hello.

    You should be using regular expressions if your data is dynamic. Regular expressions can match different kinds of dynamic data, such as numbers that change from day to day.

    I found an excellent resource to help you:
    http://motevich.blogspot.com/2008/08...amic-link.html

    I hope this helps.
    G.Gasko
    Software Test Engineer
    RTTS

  5. #5
    Member
    Join Date
    Jan 2009
    Posts
    57
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How to test if the data is dynamic

    Thank you Gasko.

    The video was really helpful. I will test this on my site, lets see if it works. I think it should work according to the blog video.

    Love the forums. [img]/images/graemlins/smile.gif[/img]

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 10.71%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 03:41 AM.

Copyright BetaSoft Inc.