>@ sign is treated as literal. When value of parameter is not inclosed
in quotes it is always >treated literal.
Thank you, Ilya. This is what I was looking for. I didn't know if @
was treated as a literal in params. I'm sure the problem is with me
leaving out a piece in the form querystring.
Sean
-----Original Message-----
From: Ilya Martynov [mailto:il...@ip...]=20
Sent: Tuesday, July 01, 2003 3:50 AM
To: Sean O'Neill
Cc: htt...@li...
Subject: Re: [Http-webtest-general] wt script file - email address in
params
>>>>> "SO" =3D=3D Sean O'Neill <so...@ci...> writes:
SO> I am using the WebTest module and have created a test script to=20
SO> submit a web form.=A0=A0 One of the text box fields on the web form=20
SO> requires entry of an email address.=A0 On submit, the form will=20
SO> process the page and send an email to the=A0address=A0submitted with =
the
SO> form.=A0 When I include the email address in the params section of =
the
SO> script, the script succeeds, but no email is sent.
SO> Here is a code snipet and the script test results:
SO> test_name =3D Submit Test
SO> =A0 click_button =3D Submit
SO> =A0 params =3D ( name =3D> Joe
SO> =A0=A0 =A0=A0=A0=A0=A0=A0=A0=A0=A0 email =3D> js...@my... )
SO> =A0 regex_require =3D (=A0Email confirmation sent )
SO> end_test
SO> Here is a snipet from the script run results:
SO> URL:=20
SO> =
http://www.somedomain.com/form1.plx?name=3DJoe&email=3Djsmith%40mydomain
SO> .com
SO> Is this problem due to the params section of code not interpreting=20
SO> the "@" sign as a literal?=A0 Do I need to use some combo =
of=A0quotes=20
SO> around the email address in params?
@ sign is treated as literal. When value of parameter is not inclosed in
quotes it is always treated literal. And result URL is correct - it is
just that @ was URL escaped there. Technically URLs like
http://domain/?param=3D@ and http://domain/?param=3D%40 are exactly
equivalent.
Could it be a problem that your script requires form submited using POST
instead of GET or it needs additional params?
--=20
Ilya Martynov, il...@ip...
CTO IPonWEB (UK) Ltd
Quality Perl Programming and Unix Support
UK managed @ offshore prices - http://www.iponweb.net
Personal website - http://martynov.org
|