Execute sahi script in groovy

126 views
Skip to first unread message

Satish Manohar

unread,
Jul 27, 2012, 12:09:10 PM7/27/12
to sa...@googlegroups.com
I want to execute a sahi script from Soap UI. As SoapUI provides Groovy functionality, Is it possible to execute a sahi scipt(.sah file) in Groovy.
Please help me with an example.

Sriram Narayanan

unread,
Jul 28, 2012, 2:12:21 AM7/28/12
to sa...@googlegroups.com

What requirement would you address by getting this to work? Do you wish to share code between sahi and soapui?

Ram

On Jul 27, 2012 9:39 PM, "Satish Manohar" <satishman...@gmail.com> wrote:
I want to execute a sahi script from Soap UI. As SoapUI provides Groovy functionality, Is it possible to execute a sahi scipt(.sah file) in Groovy.
Please help me with an example.

--
You received this message because you are subscribed to the Google Groups "sahi" group.
To view this discussion on the web visit https://groups.google.com/d/msg/sahi/-/25i3uy51O-4J.
To post to this group, send email to sa...@googlegroups.com.
To unsubscribe from this group, send email to sahi+uns...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/sahi?hl=en.

Satish Manohar

unread,
Jul 30, 2012, 12:17:11 PM7/30/12
to sa...@googlegroups.com
I want to write the below sahi script in groovy.

_setValue(_textbox("j_username"), "aaaaa");
_setValue(_password("j_password"), "bbbbb");
_click(_cell("z-button-cm"));
_click(_div("Reporting"));
_click(_link("Create New Report"));
_click(_cell("Next"));
_setValue(_textbox(3), "Report1");
_setValue(_textbox(4), "Report1");
_click(_cell("Next"));
_click(_cell("Next"));
_click(_cell("Next"));
_click(_cell("Next"));
_click(_cell("Next"));
_click(_label(87));
_setValue(_textbox(12), "x...@abc.com");
_click(_cell("Save"));
_click(_cell("OK"));
_click(_cell("OK"));
_click(_link("Logout"));

Narayan Raman

unread,
Jul 30, 2012, 12:28:10 PM7/30/12
to sa...@googlegroups.com
Hi Satish,

Look at Sahi's java driver.  http://sahi.co.in/w/java 
After adding Sahi's jars to classpath you should be able to call Sahi's APIs from groovy.

Regards,
Narayan

--
You received this message because you are subscribed to the Google Groups "sahi" group.
To view this discussion on the web visit https://groups.google.com/d/msg/sahi/-/qRP_jaaFvzUJ.

To post to this group, send email to sa...@googlegroups.com.
To unsubscribe from this group, send email to sahi+uns...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/sahi?hl=en.



--
Narayan Raman  | +91 98809 65555 
Tyto Software Pvt. Ltd. http://sahi.co.in (@_sahi)


Satish Manohar

unread,
Jul 30, 2012, 1:32:35 PM7/30/12
to sa...@googlegroups.com
After adding Sahi's jars to classpath ????

Can you please throw some light on this
Reply all
Reply to author
Forward
0 new messages