Alert Dialog box using Groovy Script in soapUI
Groovy Date Formats for soapUI
Groovy Script to disable a test case in soapUI
How to Create, Write and Append a File?
JDBC Connection using groovy script in soapUI
Capture the list of Assertions dynamically
Get the list of test steps in soapUI using groovy script
Find the project path
How to Set, Retrieve properties on a teststep, testcase, testSuite or project?
How to write soapUI Response to a File?
How to find the testcase status?
How to parse/ read XML file using groovy script?
Get JDBC Connection Configuration settings using Groovy Script.
Groovy Script to capture soapUI Logs to a file.
Include Groovy Script Library in soapUI
How to Set, Retrieve properties on a teststep, testcase, testSuite or project?
please give one example....this is urgent for me.
Hello Srinivas..
See the below link. I have replied to your other question also in other post.
http://www.webservices-testing.com/2011/11/testcase-testsuite-property-groovy.html
Hi,My project overview is creating an orders,at a time I can create nearly 100 orders but each order has more than 40 fields,using data source excel sheet option is TDS process because each order has more 40 fields,in this situation how to automate test cases using groovy script,Please provide gud solution for this
Hi Sushma,
Unfortunately I can also suggest only the Data source step. I agree to you the its tedious, but its only a onetime job to map the excel (or data source) columns to your web service request parameter. Once you are ready with the mapping, you can add "n" number of data into the excel and soapui will pick everything based on your mapping used in the data source loop.
Hi Sudeesh,
Please post an example to store all groovy logs in a file. Lets say I have a groovy script which runs a request and parse a node value and store the result in logs. Now I want this log to get stored in a file. Can you please create a new thread which can explain this scenario.
Thanks!!!!!
Hello I have to write groovy script for setting up database connection for sql developer, fetch the data and compare the response of SOAP request to the database mentioned above. Can you please help me for groovy script. I am new to it.
Thanks in advance!!
Hi Swati,
Groovy script to capture the logs has been posted. Please check it out.
Hi Pradnya,
I didn't quite get your question, do you need to make a connection from soapUI to a database?
Hi Sudeesh,
I am SOA tester and wants to perform datadriven testing in SOAP using Groovy code. I am able to parse/read XLS(containing input data) but not able to assign those data to the SOAP request-corresponding input element. Please help me out to solve this problem.
Thanks...
I assume that you are using a free version of soapUI. You can set the input data as test case properties and then configure your request to read it. Something like ${#TestCase#InputData1}
Hi how to set time for teststep in the testcase to execute after few min.
Hi Could you please post to compare between xml and database by using Groovy script
Hi Sudeesh,
Can you help me to get the test steps requests ,response along with the status in the groovy,
But when i try to do it i am facing issue with few steps (property transfer and Groovy which don't have any valid responses )
log.info 'response value: '+response
def Check="OK"
log.info 'Check: '+Check
assert response==Check : '''
Response Value is matching with Database value
'''
This giving me an error like "java.lang.AssertionError: Response Value is matching with Database value . Expression: (response == Check). Values: response = OK , Check = OK error at line: 74" Can you please suggest what's wrong with this, and How can we fix this.