SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 3 of 3
  1. #1
    Senior Member
    Join Date
    Mar 2006
    Location
    Bristol, UK
    Posts
    1,530
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    When you check links on a web page, can you have a variable in the Link URL?

    Apologies if this has been asked many times before but I've searched the forum and seen similar questions but its still not clear.

    I have a script which acceses every page in a web application and then performs a Standard Checkpoint on the web page. As the script is run against different test environments, I have used a regular expression to check Link URLs.

    eg. http://.*./systems/loginpage\.do


    However ideally I would like to use a variable value instead of ".*."

    e.g. Along the lines of
    "http://" & strURL &"/systems/loginpage.do"

    I know that I could create a string and pass that it to the checkpoint but there are a lot of links and that really isn't suitable!!!!

  2. #2
    Senior Member
    Join Date
    Mar 2006
    Location
    Bristol, UK
    Posts
    1,530
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: When you check links on a web page, can you have a variable in the Link URL?

    Come on guys, pleeeeeeaaaassseee help!!!!!! ;@)

  3. #3
    Moderator
    Join Date
    Sep 2001
    Location
    Doncaster, UK
    Posts
    5,788
    Post Thanks / Like
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: When you check links on a web page, can you have a variable in the Link URL?

    Robbie you can do this but you may have to replace some of the characters in the url string with are also VBScript special characters. Try something like this:

    theENV="UAT"
    theURL = "http"&Chr(58)&Chr(47)&Chr(47)&theENV&Chr(47)&"sys tems"&Chr(47)&"loginpage"&Chr(46)&"do"
    MsgBox theURL

    Play around with that and see if it helps.

    Mark Smith.

 

 

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 12.50%
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 12:47 AM.

Copyright BetaSoft Inc.