Ask a Question

Error while running script using readyAPi

SOLVED
doubtsreadyapi
Contributor

Error while running script using readyAPi

Hi

 

I am trying to run the python script using ready APi, Attached is the script, where as i am getting the error while running the script, Error also attached.

 

Please let me know whether i have to import any libraries/Jar files to run the python script from readyAPi?

 

 

 

Thanks

 

 

 

5 REPLIES 5
richie
Community Hero

Hey @doubtsreadyapi!

Wow! You are one busy fella arent you? I wish i was as busy as you!

Whats the reasoning for using python over using the default supported groovy or javascript? Is it essential that you use python above the default options (groovy/javascript)?

If youre using python from within readyapi!, id suggest youll definitely need to add in the appropriate .jars to the appropriate directory as python isnt supported by default (although i could be wrong as ive never trief python in soapuo before!)

Rao already talked about this on a post via the following link

https://community.smartbear.com/t5/SoapUI-Open-Source/Does-SOAPUI-free-version-support-python-script...


I also found this link from a while back that might help.

https://community.smartbear.com/t5/SoapUI-Open-Source/Running-a-external-Selenium-Python-script-from...

Nice one

Rich
if this helped answer the post, could you please mark it as 'solved'? Also if you consider whether the title of your post is relevant? Perhaps if the post is solved, it might make sense to update the Subject header field of the post to something more descriptive? This will help people when searching for problems. Ta

Hi @richie 

 

Thanks for the information

 

I already tried with the script provided in the below url, where as i am getting error, which i have already attached.

 

https://community.smartbear.com/t5/SoapUI-Open-Source/Running-a-external-Selenium-Python-script-from...

 

http://www.joergm.com/2010/09/executing-shell-commands-in-groovy/  this url is not working

 

and also can you please let me know what are the list of libraries needs to be imported in Ready APi? and for running the python script from readyAPi, Python needs to be installed on the machine?

 

Thanks

 

 

Hey @doubtsreadyapi,

Im sorry....i cant help with this as ive never used python with soapui and after a brief search online i cant find any resource that would provide the info youre looking for. Perhaps the other forum members might be able to help?

As an aside, the error response youre generating when executing the script appears to indicate it cant find the .py file. Have you confirmed you have saved the .py file in the location youve specified in your script?

Ok...that's me out of ideas

Good luck!

Rich
if this helped answer the post, could you please mark it as 'solved'? Also if you consider whether the title of your post is relevant? Perhaps if the post is solved, it might make sense to update the Subject header field of the post to something more descriptive? This will help people when searching for problems. Ta

It is just that in correct command is used, based on your stackoverflow question.
No jars required.
Actual command is available in the community link provided by @richie.


Regards,
Rao.

@nmrao 

 

Thanks it worked.

 

 

cancel
Showing results for 
Search instead for 
Did you mean: