Re: Properities

"Tim Pezarro" <Tim_Pezarro-4W7cOCfLBmzY0TyS/[email protected]>
Newsgroups gmane.comp.web.canoo.webtest
Message-ID <[email protected]_nt.nt.pmc-sierra.bc.ca>
Eric,
Sorry I cannot immediately see the problem. I may have given you bad advice about the dynamic property. 

I will need to look at it next week when I am in the office.

Does anyone else have a suggestion for Eric?

Cheers,
Tim Pezarro
Manager, Web Services
[email protected]
Phone: +1-604-415-6044
Cell: +1-604-762-1000
Fax: +1-604-415-6602
PMC-Sierra, Inc.
8555 Baxter Place
Burnaby, BC, Canada
V5A 4V7

----- Original Message -----
From: Eric Bunton <[email protected]>
To: Tim Pezarro
Sent: Fri Jul 01 17:00:21 2011
Subject: Re: [Webtest] Properities

The user inputs it using the -Durl=http://url ant CL option. Here is the code where it is set in the build file: 
<condition property="url" value="http://jboss.bibliolabs.com:8080/xpress/rest/">
		<not>
			<isset property="url"/>
		</not>
	</condition> 

I can access the property in any ant thing but when it comes to the point I really need it, it does not work. Here it the code for the test: 
<webtest name="BL Verification Test">
    	<config>
        	<option name="ThrowExceptionOnFailingStatusCode" value="false"/>
   		</config>   		
      	<invoke url="#{url}LibraryCard/verify/BL/666666"
        	description="BL Verification Test" />
		<storeResponseCode description="Response Code for the test" property="status"/>
        <verifyProperty description="should be 404" name="status" text="404"/>        
    </webtest>

Thanks

On Jul 1, 2011, at 4:55 PM, Tim Pezarro wrote:

> Eric,
> What do you mean by set by user? If the property is dynamic and set during the run time, it should use this syntax: #{url}/test
> 
> There are several steps that will assign a dynamic value to a property. I am out ot the office until next week and do not have an example in front of me.
> 
> If you are still having trouble, send the part of your test where you are settng the property ${url}.
> 
> Cheers,
> Tim Pezarro
> Manager, Web Services
> [email protected]
> Phone: +1-604-415-6044
> Cell: +1-604-762-1000
> Fax: +1-604-415-6602
> PMC-Sierra, Inc.
> 8555 Baxter Place
> Burnaby, BC, Canada
> V5A 4V7
> 
> ----- Original Message -----
> From: [email protected] <[email protected]>
> To: [email protected] <[email protected]>
> Sent: Fri Jul 01 13:38:40 2011
> Subject: [Webtest] Properities
> 
> I have a couple of base url's to test. I have a property set by the user but when I go to do the webtest it isn't actually replaced. ex: ${url}/test
> 
> The url property is set by the user depending on what url they want to test. Can anyone shed some insight on this?_______________________________________________
> WebTest mailing list
> [email protected]
> http://lists.canoo.com/mailman/listinfo/webtest
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.