print result.text
Alan Jackson <pure_jax-/[email protected]> Thu, 1 Sep 2016 15:24:05 +0000 (UTC)
| Newsgroups | gmane.comp.java.grinder.user |
|---|---|
| Message-ID | <[email protected]> |
--===============0803500451532832317==
Content-Type: multipart/alternative;
boundary="----=_Part_3572963_1384787630.1472743445103"
Content-Length: 3375
------=_Part_3572963_1384787630.1472743445103
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Hi,
Can anyone help me write the output of a URL to the out.log file or another=
log file
Currently I have: -
# =C2=A0 =C2=A0 =C2=A0 tests[2].POST(searchUrl + sessionCookie,=C2=A0 =C2=
=A0 =C2=A0 =C2=A0 result =3D tests[14].POST('http://cathp60:7002//search-cu=
stomer.do' + sessionCookie,=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ( NVPair('mpn=
', '07935139299'),=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 NVPair('account=
Id', ''),=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 NVPair('contactType', 'U=
ser'), ))=C2=A0 =C2=A0 =C2=A0 =C2=A0 print result.text=C2=A0 =C2=A0 =C2=A0 =
=C2=A0 #WriteToFile(result.text)
The print result.text will output the result on the command line however I =
need to record this result into the log file.
I tried WriteToFile(result.text) however this just returned an error.
Can someone please advise?
------=_Part_3572963_1384787630.1472743445103
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
<html><head></head><body><div style=3D"color:#000; background-color:#fff; f=
ont-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, =
sans-serif;font-size:13px"><div id=3D"yui_3_16_0_ym19_1_1472742934836_4531"=
>Hi,</div><div id=3D"yui_3_16_0_ym19_1_1472742934836_4531"><br></div><div i=
d=3D"yui_3_16_0_ym19_1_1472742934836_4531">Can anyone help me write the out=
put of a URL to the out.log file or another log file</div><div id=3D"yui_3_=
16_0_ym19_1_1472742934836_4531"><br></div><div id=3D"yui_3_16_0_ym19_1_1472=
742934836_4531">Currently I have: -</div><div id=3D"yui_3_16_0_ym19_1_14727=
42934836_4531"><br></div><div id=3D"yui_3_16_0_ym19_1_1472742934836_4648">#=
tests[2].POST(searchUrl + sessionCookie,</div><div id=
=3D"yui_3_16_0_ym19_1_1472742934836_4649"> resul=
t =3D tests[14].POST('http://cathp60:7002//search-customer.do' + sessionCoo=
kie,</div><div id=3D"yui_3_16_0_ym19_1_1472742934836_4650"> &n=
bsp; ( NVPair('mpn', '07935139299'),</div><div id=3D"yui_3_16=
_0_ym19_1_1472742934836_4651"> NVP=
air('accountId', ''),</div><div id=3D"yui_3_16_0_ym19_1_1472742934836_4652"=
> NVPair('contactType', 'User'), )=
)</div><div id=3D"yui_3_16_0_ym19_1_1472742934836_4653">  =
; print result.text</div><div id=3D"yui_3_16_0_ym19_1_1472742934836_=
4654"> #WriteToFile(result.text)</div><div id=3D=
"yui_3_16_0_ym19_1_1472742934836_4656"><br></div><div id=3D"yui_3_16_0_ym19=
_1_1472742934836_4656">The print result.text will output the result on the =
command line however I need to record this result into the log file.</div><=
div id=3D"yui_3_16_0_ym19_1_1472742934836_4656"><br></div><div id=3D"yui_3_=
16_0_ym19_1_1472742934836_4656">I tried WriteToFile(result.text) however th=
is just returned an error.</div><div id=3D"yui_3_16_0_ym19_1_1472742934836_=
4656"><br></div><div id=3D"yui_3_16_0_ym19_1_1472742934836_4656">Can someon=
e please advise?</div><div dir=3D"ltr" id=3D"yui_3_16_0_ym19_1_147274293483=
6_4729"><br id=3D"yui_3_16_0_ym19_1_1472742934836_4730"></div></div></body>=
</html>
------=_Part_3572963_1384787630.1472743445103--
--===============0803500451532832317==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
------------------------------------------------------------------------------
--===============0803500451532832317==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
grinder-use mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/grinder-use
--===============0803500451532832317==--