User Robert Lauzon (devoiss@hotmail.com) posted:
I have the exact same problem !!!

When I check image links, the source URL is something like
"http://server1/images/imageName.gif"

When I check a different build on a different machine, it's
"http://server2/images/imageName.gif"

and fails every time. I just need the "/images/imageName.gif" part.

If I could just insert regular expressions in my GUI checkpoints, it would
solve a lot of headaches on my part!

I would appreciate seeing any solution to this.

RhoBear

----Original Message Follows----
From: paul_prince@hotmail.com
Reply-To: winrunner@yahoogroups.com
To: winrunner@yahoogroups.com
Subject: [winrunner] Re: How do I put a Reg.Exp. in expected results of ch
ecklists?
Date: Thu, 29 Mar 2001 21:11:28 -0000

That did not solve my problem. I do appreciate the answer anyway.

I did as suggested and in the GUI Checkpoint Results popup I did as
suggested. I reran my tests and it flagged an error.

Thinking further with this I don't think a solution will work long
term because as soon as I run in update mode my modified 'expected
results' will get overridden.

The reason for wanting this is that I want to be able to regression
test the app on different web servers. All the links still have to
work but they will have different url's because the server domain
name will be different.

Has anyone else solved this issue?

Paul

--- In winrunner@y..., Richard Weber <rweber@h...> wrote:
> A reg expression has the exclamation (!) at the beginning of the
string.
> like this:
> "! <http://.*/gothere.asp> http://.*/gothere.asp"
>
> -----Original Message-----
> From: paul_prince@h... [mailtoaul_prince@h...]
> Sent: Thursday, March 29, 2001 10:37 AM
> To: winrunner@y...
> Subject: [winrunner] How do I put a Reg.Exp. in expected results of
> checklists?
>
>
> I want to make server variable on web links. The expected result is
> static, ie, http://203.123.12.22/gothere.asp
> <http://203.123.12.22/gothere.asp> in gui checklist
>
> I want it to work like http://!.*/gothere.asp
>
> I cannot get this to work. Is there a way?
>
> tia...Paul
>
>
>
> Yahoo! Groups Sponsor
>
>
<http://rd.yahoo.com/M=162801.1342103...egroupmail/S=1
700007
> 181:N/A=599089/*http://www.knowledgestorm.com/jump_white.html?
c=Yahoo&n=eLer
> t_ComputersInternet_Software_WhiteGridOptions&t=ad > Click Here to
Find
> Software Faster
> Click Here to Find Software Faster
>
> <http://us.adserver.yahoo.com/l?
M=162801.1342103.2934627.1280005/D=egroupmai
> l/S=1700007181:N/A=599089/rand=654511052>
>
>