Quantcast

Grinder script execution error

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Grinder script execution error

Chanduram Dowlathram
Can someone tell me how to fix this execution error :

thread-0 [ run-0 ]: aborted run - Jython exception, <type 'exceptions.TypeError'>: page1() takes exactly 1 argument (2 given) [calling TestRunner]
net.grinder.scriptengine.jython.JythonScriptExecutionException: <type 'exceptions.TypeError'>: page1() takes exactly 1 argument (2 given)
result = ls.page1(self)
File "./csaTest.py", line 30, in grinder_pt
self.grinder_pt()
File "./csaTest.py", line 51, in __call__


Here are my source files : 


------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
grinder-use mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/grinder-use

csaTest.py (3K) Download Attachment
LoadShell.py (6K) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Grinder script execution error

shatakirti
In line :

result = ls.page1(self)

Remove the word "self". So, result = ls.page1() is the correct usage
Kirti
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Grinder script execution error

Chanduram Dowlathram
thank you !


On Thu, Sep 4, 2014 at 2:49 PM, shatakirti <[hidden email]> wrote:
In line :

result = ls.page1(self)

Remove the word "self". So, result = ls.page1() is the correct usage



-----
Kirti
--
View this message in context: http://grinder.996249.n3.nabble.com/Grinder-script-execution-error-tp8903p8904.html
Sent from the Grinder - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Slashdot TV.
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
grinder-use mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/grinder-use


------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
grinder-use mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/grinder-use
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Grinder script execution error

Joan Picanyol i Puig
In reply to this post by Chanduram Dowlathram
Self is an implicit argument in python so it should not be passed.

try

    result = ls.page1()

qvb
--
pica

* Chanduram Dowlathram <[hidden email]> [20140904 20:02]:

> Can someone tell me how to fix this execution error :
>
> thread-0 [ run-0 ]: aborted run - Jython exception, <type
> 'exceptions.TypeError'>: page1() takes exactly 1 argument (2 given)
> [calling TestRunner]
> net.grinder.scriptengine.jython.JythonScriptExecutionException: <type
> 'exceptions.TypeError'>: page1() takes exactly 1 argument (2 given)
> result = ls.page1(self)
> File "./csaTest.py", line 30, in grinder_pt
> self.grinder_pt()
> File "./csaTest.py", line 51, in __call__
>
>
> Here are my source files :



> ------------------------------------------------------------------------------
> Slashdot TV.  
> Video for Nerds.  Stuff that matters.
> http://tv.slashdot.org/

> _______________________________________________
> grinder-use mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/grinder-use


--
pica

------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
grinder-use mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/grinder-use
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Grinder script execution error

Chanduram Dowlathram
thanks it worked


On Fri, Sep 5, 2014 at 3:34 AM, Joan Picanyol i Puig <[hidden email]> wrote:
Self is an implicit argument in python so it should not be passed.

try

    result = ls.page1()

qvb
--
pica

* Chanduram Dowlathram <[hidden email]> [20140904 20:02]:
> Can someone tell me how to fix this execution error :
>
> thread-0 [ run-0 ]: aborted run - Jython exception, <type
> 'exceptions.TypeError'>: page1() takes exactly 1 argument (2 given)
> [calling TestRunner]
> net.grinder.scriptengine.jython.JythonScriptExecutionException: <type
> 'exceptions.TypeError'>: page1() takes exactly 1 argument (2 given)
> result = ls.page1(self)
> File "./csaTest.py", line 30, in grinder_pt
> self.grinder_pt()
> File "./csaTest.py", line 51, in __call__
>
>
> Here are my source files :



> ------------------------------------------------------------------------------
> Slashdot TV.
> Video for Nerds.  Stuff that matters.
> http://tv.slashdot.org/

> _______________________________________________
> grinder-use mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/grinder-use


--
pica

------------------------------------------------------------------------------
Slashdot TV.
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
grinder-use mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/grinder-use


------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
grinder-use mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/grinder-use
Loading...