[prev in list] [next in list] [prev in thread] [next in thread] 

List:       grinder-use
Subject:    Re: [Grinder-use] TypeError: POST(): 2nd arg can't be coerced to
From:       "dhinakar k" <dhinakar.k () gmail ! com>
Date:       2008-03-26 1:59:31
Message-ID: 7a5877b20803251859s2e3b91d2ne724e4f295e79c91 () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]

[Attachment #4 (text/plain)]

Phil,

Sorry for the delay in my reply. I haven't modified the script. I tried out
some combinations and figured out what is the issue. The exact error that I
got has been pasted below:-

08. 3. 19. ¿ÀÈÄ 5:43:51 (thread 0 run 0 test 1201): Aborted run due to Jython
exception: TypeError: POST(): 2nd arg can't be coerced to HTTPClient.NVPair[]
or byte[] [calling TestRunner]
TypeError: POST(): 2nd arg can't be coerced to HTTPClient.NVPair[] or byte[]
 File "D:\Grinder\grinder.py", line 2055, in page12
 File "D:\Grinder\grinder.py", line 3044, in __call__

I noticed something strange in the above error. Even though I have done the
'Distribute ->  Set Directory' (in the Grinder Console) as
'D:\Grinder\Scripts\PBom_Profiling_19thMar08'  and wanted to set
'PBOM_SAP.py' to run, the Console has picked up some other script '
grinder.py' from 'D:\Grinder' for execution. Only then I noticed that 'Set
script to run' option (tool tip) in the Grinder Console (Beat 31 and
versions before), is now showing 'Select the properties file to use. The
properties file now controls which script will be run'. So "*.py' cannot be
chosen now to be set for execution like I used to do before in Grinder
Console. Hence I pointed to my 'grinder.properties' file and added '
grinder.script=PBOM_SAP.py' line to it. I had no issues after that.

I could not see the above changes documented in Release Notes or Readme or
CHANGES files (or did I miss it?). Otherwise this is not at all an issue and
sorry very much for wasting your time.

Thanks & Regards,

Dhinakar

On 3/23/08, Philip Aston <philipa@mail.com> wrote:
>
> dhinakar k wrote:
> > Dear Grinder Users,
> >
> > I created a http script using Grinder 3.0.1 version and while running
> > the script I got the following error.
> >
> > TypeError: POST(): 2nd arg can't be coerced to HTTPClient.NVPair[] or
> > byte [calling TestRunner]
> >
> > Can anybody point to me how to fix this issue. I feel the scripts
> > created using -newhttpplugin (Grinder Beta31 Version) was quite small
> > and more readable (or easier to understand) for me though it did not
> > handle some extra header data.
> >
>
> I presume you have modified the script?
>
> Can you mail the lines of the script that is causing the problem, and
> we'll help you out.
>
> - Phil
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> grinder-use mailing list
> grinder-use@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/grinder-use
>

[Attachment #5 (text/html)]

<div>Phil,</div>
<div>&nbsp;</div>
<div>Sorry for the delay in my reply. I haven&#39;t modified the script. I tried out \
some combinations and figured out what is the issue. The exact error that I got has \
been pasted below:-</div> <div>&nbsp;</div>
<div>08. 3. 19. ¿ÀÈÄ 5:43:51 (thread 0 run 0 test 1201): Aborted run due to Jython \
exception: TypeError: POST(): 2nd arg can&#39;t be coerced to HTTPClient.NVPair[] or \
byte[] [calling TestRunner]<br>TypeError: POST(): 2nd arg can&#39;t be coerced to \
HTTPClient.NVPair[] or byte[]<br> &nbsp;File &quot;D:\Grinder\grinder.py&quot;, line \
2055, in page12<br>&nbsp;File &quot;D:\Grinder\grinder.py&quot;, line 3044, in \
__call__</div> <div>&nbsp;</div>
<div>I noticed something strange in the above error. Even though I have done the \
&#39;Distribute -&gt;&nbsp; Set Directory&#39; (in the Grinder Console) as \
&#39;D:\Grinder\Scripts\PBom_Profiling_19thMar08&#39;&nbsp; and wanted to set \
&#39;PBOM_SAP.py&#39; to run, the&nbsp;Console has picked up some other \
script&nbsp;&#39;grinder.py&#39; from &#39;D:\Grinder&#39; for execution. Only then I \
noticed that &#39;Set script to run&#39; option (tool tip)&nbsp;in the Grinder \
Console (Beat 31 and versions before), is now showing &#39;Select the properties file \
to use. The properties file now&nbsp;controls which script will be run&#39;. So \
&quot;*.py&#39; cannot be chosen now to be&nbsp;set&nbsp;for execution like I used to \
do before in Grinder Console. Hence I pointed to my &#39;grinder.properties&#39; file \
and added &#39;grinder.script=PBOM_SAP.py&#39; line to it. I had no issues after \
that.</div>

<div>&nbsp;</div>
<div>I could not see the above changes documented in Release Notes or Readme or \
CHANGES files (or did I miss it?). Otherwise this is not at all an issue and sorry \
very much for wasting your time.</div> <div>&nbsp;</div>
<div>Thanks &amp; Regards,</div>
<div>&nbsp;</div>
<div>Dhinakar</div>
<div>&nbsp;</div>
<div><span class="gmail_quote">On 3/23/08, <b class="gmail_sendername">Philip \
Aston</b> &lt;<a href="mailto:philipa@mail.com">philipa@mail.com</a>&gt; \
wrote:</span> <blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px \
0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">dhinakar k wrote:<br>&gt; Dear Grinder \
Users,<br>&gt;<br>&gt; I created a http script using Grinder 3.0.1 version and while \
running<br> &gt; the script I got the following error.<br>&gt;<br>&gt; TypeError: \
POST(): 2nd arg can&#39;t be coerced to HTTPClient.NVPair[] or<br>&gt; byte [calling \
TestRunner]<br>&gt;<br>&gt; Can anybody point to me how to fix this issue. I feel the \
scripts<br> &gt; created using -newhttpplugin (Grinder Beta31 Version) was quite \
small<br>&gt; and more readable (or easier to understand) for me though it did \
not<br>&gt; handle some extra header data.<br>&gt;<br><br>I presume you have modified \
the script?<br> <br>Can you mail the lines of the script that is causing the problem, \
and<br>we&#39;ll help you out.<br><br>- \
Phil<br><br><br>-------------------------------------------------------------------------<br>This \
SF.net email is sponsored by: Microsoft<br> Defy all challenges. Microsoft(R) Visual \
Studio 2008.<br><a href="http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/">http \
://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/</a><br>_______________________________________________<br>
 grinder-use mailing list<br><a \
href="mailto:grinder-use@lists.sourceforge.net">grinder-use@lists.sourceforge.net</a><br><a \
href="https://lists.sourceforge.net/lists/listinfo/grinder-use">https://lists.sourceforge.net/lists/listinfo/grinder-use</a><br>
 </blockquote></div><br>



-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace

_______________________________________________
grinder-use mailing list
grinder-use@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/grinder-use


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic