SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    Member
    Join Date
    Jan 2003
    Location
    Lake Orion, Michigan, USA
    Posts
    30
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    How do you parameterize CheckPoints so they are Environment independent?

    Hello,
    I am trying to solve a problem whereby a script will travel to a site / page and check links in several different environments. So, I have scripts and checkpoints which verify http://test.website.com. If I record in that environment, and run there, all is well.

    Once I change the "Environment To Use" variable that I have set up as a parameter (sServer), then the URL changes to http://beta.website.com. However, all the subsequent checkpoints fail because they were recorded as "test" for the "sServer" environment variable.

    What's the best way to code the checkpoints so that the (sServer) environment variable is also used in the checkpoints?
    My software can break your software.

  2. #2
    Senior Member
    Join Date
    Oct 2006
    Location
    Norway
    Posts
    191
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How do you parameterize CheckPoints so they ar

    Hi.

    I also have the same challenge, anyone care to enlighten us? [img]/images/graemlins/smile.gif[/img]

    Cheers.
    - How many testers do you need to switch a light bulb? None, we just report it's dark -

  3. #3
    Moderator
    Join Date
    Jul 2005
    Location
    Delhi
    Posts
    15,575
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    7 Thread(s)
    Total Downloaded
    0

    Re: How do you parameterize CheckPoints so they ar

    The only solution is either to change all of them using a regular expression or create funcitons to do the validations...

  4. #4
    Senior Member
    Join Date
    Oct 2006
    Location
    Norway
    Posts
    191
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How do you parameterize CheckPoints so they ar

    Tried Regular expression, and the run crashes.

    The errormessage it's giving me is:
    Cannot identify the object "46929 for sale" (of class Link). Verify that this object's properties match an object currently displayed in your application.

    I have defined the Expression like this in my object properties:
    Property:HREF
    Value :http://st[dev].mywebsite.com/

    The script is recorded in ST environment, and in this case I tried to run it on DEV environment.
    - How many testers do you need to switch a light bulb? None, we just report it's dark -

  5. #5
    Senior Member
    Join Date
    Oct 2006
    Location
    Norway
    Posts
    191
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How do you parameterize CheckPoints so they ar

    Perhaps it could be defined like st|dev|anyother-environments|moreenvironments

    UPDATED: No, not possible.
    - How many testers do you need to switch a light bulb? None, we just report it's dark -

  6. #6
    Member
    Join Date
    Aug 2006
    Location
    Sweden
    Posts
    57
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How do you parameterize CheckPoints so they ar

    Property:HREF
    Value :http://st[dev].mywebsite.com/

    Doesnt this give you positive results for
    http://std.mywebsite.com/
    http://ste.mywebsite.com/
    http://stv.mywebsite.com/

    Try using "http://(st|dev)\.mywebsite\.com/" instead, I have not tried it but its worth a try.

    /stalis

  7. #7
    Senior Member
    Join Date
    Oct 2006
    Location
    Norway
    Posts
    191
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How do you parameterize CheckPoints so they ar

    No, that does not work [img]/images/graemlins/smile.gif[/img]

    I used:

    1
    Property:HREF
    Value :http://st|dev|uat.mywebsite.com/

    2
    Property:HREF
    Value :http://(st|dev|uat)\.mywebsite\.com/
    - How many testers do you need to switch a light bulb? None, we just report it's dark -

  8. #8
    Member
    Join Date
    Aug 2006
    Location
    Sweden
    Posts
    57
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How do you parameterize CheckPoints so they ar

    And you have activated regular expressions for the description?

  9. #9
    Senior Member
    Join Date
    Oct 2006
    Location
    Norway
    Posts
    191
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How do you parameterize CheckPoints so they ar

    I do not know.

    The user guide does not say anything about "activating" regular expression, so I can't say wether or not I have.

    But it worked with the tutorial example with the date [0-9] and so on, so it should be activated.
    - How many testers do you need to switch a light bulb? None, we just report it's dark -

  10. #10
    Junior Member
    Join Date
    Nov 2006
    Location
    Germany
    Posts
    20
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How do you parameterize CheckPoints so they ar

    Excuse my ignorance (I'm new to this also) but wouldn't it be an idea to have an initialisation script that captures the environment variables for the web site being tested?

 

 
Page 1 of 2 12 LastLast

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.00%
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 08:02 AM.

Copyright BetaSoft Inc.