Re: [Http-webtest-general] wt script file - email address in params
Brought to you by:
m_ilya,
richardanderson
From: Ilya M. <il...@ip...> - 2003-07-01 07:50:38
|
>>>>> "SO" =3D=3D Sean O'Neill <so...@ci...> writes: SO> I am using the WebTest module and have created a test script to SO> submit a web form.=A0=A0 One of the text box fields on the web form SO> requires entry of an email address.=A0 On submit, the form will SO> process the page and send an email to the=A0address=A0submitted with SO> the form.=A0 When I include the email address in the params section SO> of the 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: http://www.somedomain.com/form1.plx?name=3DJoe&email=3Djsmith%40my= domain.com SO> Is this problem due to the params section of code not interpreting the = "@" SO> sign as a literal?=A0 Do I need to use some combo of=A0quotes around th= e email SO> 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 |