ContributionsMost RecentMost LikesSolutionsRe: How to fetch the output or Error message of a Shell script through groovy on remote server. Hi, This has been fixed now. Thanks How to fetch the output or Error message of a Shell script through groovy on remote server. Hi, I want to execute a shell script on a remote server and want to fetch the output/error message of the shell script. Can anyone provide some solution to me on this? Thanks in advance. SolvedRe: Is there any way to get rest resource of a rest step through Groovy. Hi Bill, Thanks a lot for your support. It helped me a lot. Re: Is there any way to get rest resource of a rest step through Groovy. Hi, No problem, if requestFilter.filterRequest runs after each test cases. And I would like to do my activity before the step execute so requestFilter.filterRequest Is it the correct one to do that ? If you can provide me the code then that will really helpful .Btw how can we see the logs of a Event Handler ? Re: soap request doesn't replace variable You don't have $599 to solve this problem! sorry to hear that . I thought you are using PRO version . You will get the solution soon by any expert. Re: Is there any way to get rest resource of a rest step through Groovy. Hi, Thanks for your response I tried this "log.info context.getProperty("requestUri")" but it returns Null as output. If I replace Endpoint in place of requestUri then it returns the IP & PORT but I need the information which is added in Resource . Is requestUri is the correct key to fetch resource URL ? Problem here is that we are able to fetch any information of a rest step which are added in Custom property but not those which are coming in REST Request Property. Re: soap request doesn't replace variable Can you try one thing ? Inplace of putting all those directly in the Soap request. 1-Just add a data generator before the Soap request. 2-Add a Template in the data generator . 3-Add this in the Template. <ADD_SOC_REQUEST> <MSISDN>${context.get('msisdnList').last()}</MSISDN> <SOC>SMPGL2</SOC> </ADD_SOC_REQUEST> 4-Run the data generator . 5-Now call & add the template key in the Soap request & run the step. Hope it will work . Is there any way to get rest resource of a rest step through Groovy. Hi, I am looking to fetch resource part of a rest step through . which we provide in the resource section . Note-: def testStepNameNew=testRunner.testCase.getTestStepByName("Login") def endPointInfo=testStepNameNew.getProperty("Endpoint").getValue() log.info endPointInfo op-: http://IP:PORT But I am looking for the resource part . Any kind of help will be really appreciated !!! Thanks SolvedRe: How to avoid Maven build failed in cases of Soapui Testcases failure Hi, While executing your pom file try to use this command clean verify -fn -f -Dmaven.test.failure.ignore=true Hope this will help you,please let me know you face any issue. Re: How to take a value from the request & save as a global property when the response is positive 1-Run your rest step once with positive data 2-Add a groovy script in your test case . 3-Right click and select Get Data. 3-Go to your rest case and select the test step 4- Add harResponse . 5- In harResponse, there will be #status# which return a code . It returns 2 different code,one for positive & one for negative (please check once with your data) 6-Select #status# from harResponse . (This will give you idea whether your test step is passed or failed ) Example def harResponse = context.expand( '${#[TestSuite#TestCase#RestStep]#HarResponse#$[\'headers\'][0][\'value\']}' ) let suppose expected #status#="HTTP/1.1 201" Solution_1 After that use this code if(harResponse_StatusCode.equals(harResponse)) { //get your data from rest step in the same way as above mention(this time select response in place of harResponse) Example def getResponseInfo = context.expand( '${#[TestSuite#TestCase#RestStep]#Response#$[\'responseInfo\']}' ) def globalProperties=com.eviware.soapui.SoapUI.globalProperties globalProperties.setPropertyValue("SetGlobalpropertyName", "$getResponseInfo") } Solution_2 try{ //get your data from rest step in the same way as above mention(this time select response in place of harResponse) Example def getResponseInfo = context.expand( '${#[TestSuite#TestCase#RestStep]#Response#$[\'responseInfo\']}' ) def globalProperties=com.eviware.soapui.SoapUI.globalProperties globalProperties.setPropertyValue("SetGlobalpropertyName", "$getResponseInfo") } catch(Exception) { log.error " rest step is failed " } Hope this will help you,let me know if you face any problem.