Contributions
Re: Jenkins Integraion with Zephyr Scale - File Not Found
Hi, in order to make it work, you have to set the exact xml file location, not just the folder. It seems that if you just set the root report folder, the plugin does not know where to find the TEST*.xml files. So you can use something like below, depending on you reports structure: \junitreports\TEST*.xml or \junitreports\*\*\TEST*.xml That worked for me.617Views1like0CommentsRe: Testrunner throws java.lang.NoClassDefFoundError: sun/misc/BASE64Decoder exception
If you use base64 in groovy, somethink like this can do the trick: import java.io.* import java.util.Base64 //Set string def s = 'Test String' //Encode with Base64 String encoded = s.bytes.encodeBase64().toString() log.info encoded //Assert the expected encoded string is the right one assert 'VGVzdCBTdHJpbmc=' == encoded //Decode with Base64 byte[] decoded = encoded.decodeBase64() //Assert is equals assert s == new String(decoded) log.info s Do you get the error somewhere else?12KViews0likes6CommentsRe: data source query
Hi, i don't know if this helps, but have you tried convertion boolean "true" and "false" to string? boolean PLCCIndicator = true; String str = String.valueOf(PLCCIndicator); Then use the "str" as you wish. Regards -Konstantinos6 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.6KViews0likes0CommentsRe: testRunner / context / log not available (No such property) after running other testcase
Hi joeri, there is nothing really compicated with your script at first. I usually set a context property using this context.setProperty("value","value") after that you can access this property by using context.value Have you tried this approach? Thank you -Konstantinos2.3KViews0likes0CommentsRe: what correction i need to do in my script so that my output will be independent of Default response
Hi Aman111, i understand that you use this request in each MockResponse? If you want to seperate each response, you can try add the code in each "Script" section in every mock. Probably, what you do here, trying to access multiple mock responses from one place does not work. So you can try something like the below code (not tested): def temp="XX"; def groovyUtils=new com.eviware.soapui.support.GroovyUtils(context) def xml=new XmlSlurper().parseText(mockRequest.requestContent) xml.breadthFirst().each{ def v=it.toString() log.info("==============="+it.name()+"==================="+it.text()); if(it.name()=="name"){ temp=it.text(); mockOperation.setDefaultResponse("Response"); log.info("===================matching tag=========================="+it.text()); } } So, depending on what mock request you do, you get the corresponing response. Regards, -Konstantinos942Views0likes0Comments