How to run specific test case in particular environment?
I have 2 environments setup : Dev & QA. There are certain test cases which are intended for Dev env only. How I avoid running those when I select QA environment? or when I select Dev env, only dev environment specific test cases run?594Views0likes5CommentsHow to upload a file via SOAP, as an attachment using python zeep
Hi folks, I am trying to attach a log.txt file with my createAttachment web service. I am using zeep as a client to do so but unable to do. I tried the same using MIME but unable to do so. import requests url = "WSDL url" payload = '''<?xml version="1.0" encoding="utf-8"?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://www.ca.com/UnicenterServicePlus/ServiceDesk"> <soapenv:Header/> <soapenv:Body> <ser:createAttachment> <sid>'''+sid+'''</sid> <repositoryHandle>doc:12</repositoryHandle> <objectHandle>cr:1306599</objectHandle> <description>Testing to attach document to change order</description> <fileName>log</fileName> </ser:createAttachment> </soapenv:Body> </soapenv:Envelope>''' files=[ ('fileName',('Testing.txt',open('C:/Users/prasaka/Desktop/Testing.txt','rb'),'text/xml')) ] headers = { 'Content-Type': 'text/xml; charset=utf-8', 'soapAction': 'application/soap+xml' } response = requests.request("POST", url, headers=headers, data={'data' : payload}, files=files) print(response.text) print(response.status_code)2.3KViews0likes3CommentsJDBC Request/Query for value located within data BLOB
I am attempting to execute the following query within a ReadyAPI JDBC request SELECT * FROM consumer WHERE consumer.payload LIKE '%name%' The issue is that ReadyAPI treats the '%' as part of the literal string which from what I understand is a sort of wildcard and used to match the given name exactly so instead of just using name it uses %name% and then returns null Within Oracle SQL Developer the query executes just fine and returns the expected corresponding row(s) but when attempting to execute it within ReadyAPI JDBC request i get null. How exactly do I go about writing the query in ReadyAPI to treat the '%' as a sort of wildcard and not actually part of the string/value?31Views0likes1CommentAssertion error log
Hi All, I need suggestion please on how to approach the following: I created a script to compare 2 very large tables before and after deployment. in the beginning I was looping thru each row and column to compare values and I was able to see the exact field that has a mismatch in the assertion log but the issue is the script was taking way too long. So I decided to to compare the whole resultSet received from both tables but and now I am facing a different issue, when there is a mismatch the assertion error log doesn't show where the exact discrepancy is but rather it shows the error mismatch between the full resultSet. is there a way to capture few lines in the error log around the mismatched string in the resultSet from the assertion instead of the whole thing ERROR: Assertion failed: assert beforeTable == afterTable | | | | | '<ResultSet ..... </ResultSet>' | false '<ResultSet ..... </ResultSet>'15Views0likes1CommentMulti Thread Groovy test step
Hello, I would really appreciate help with this. I create a test that compares data between 2 tables with large data return. the script does the job perfectly but it takes very long time to execute as it loops thru hundreds of thousands of records and verify value to value from each column. I was wondering if there is a way to run the test step groovy script in multi thread instead of doing one value at a time. thanks in advance!23Views0likes1Commentreadyapi groovy script library
I am using readyapi 3.51.0 and using readyapi groovy script for customization. Where can I get info about the readyapi groovy script libraries, for example; project.getContext().report.getTestSuiteResultList() any help with where the documentation is located? Thank you,Solved60Views0likes4Commentsmultiple groovy files
in my readyapi, I am using FrameworkUtils.groovy which located in C:\Program Files\SmartBear\ReadyAPI-3.2.0\bin\scripts\test and I don't want to add all my code inside of FrameworkUtils.groovy so I created different groovy classes in the same directory. But the problem is that even though I use import statement it is not importing file. Here is my class how I import it, in here FrameworkUtils, Common and DBUtils are in the same directory C:\Program Files\SmartBear\ReadyAPI-3.2.0\bin\scripts\tes: import com.eviware.soapui.model.support.MessageExchangeUtil import groovy.json.JsonSlurper import Common import DBUtils public class FrameworkUtils implements Common{ } Thanks in advance for your help,Solved34Views0likes2Commentsusing groovy script in readyapi
I have maven project for my readyapi, have java and groovy script in it, and placed jar into C:\Program Files\SmartBear\ReadyAPI-3.51.0\lib my groovy script directory is in src/main/groovy directory. So I am able to use java classes but when I try to use groovy script in readyapi step it doesn't work, not able to find groovy class. I can add my groovy script to C:\Program Files\SmartBear\ReadyAPI-3.51.0\bin\scripts and that works as expected, but how can I use groovy script in my maven project from jar file I added it to C:\Program Files\SmartBear\ReadyAPI-3.51.0\lib ? Here is the groovy script I use in my readyapi to call groovy script in maven project: import src.main.groovy.Utilities def utilities = new Utilities(context, context.testCase.testSuite, log) utilities.loadConfigurations() Thanks in advance,72Views0likes6Commentsreadyapi can't find custom groovy script
I added my custom groovy script Utilities.groovy file to C:\Program Files\SmartBear\ReadyAPI-3.49.0\bin\scripts but when I add following to groovy script step it is giving error; import Utilities error: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: Script8.groovy: 1: unable to resolve class Utilities @ line 1, column 1. import Utilities ^ org.codehaus.groovy.syntax.SyntaxException: unable to resolve class Utilities @ line 1, column 1. at org.codehaus.groovy.ast.ClassCodeVisitorSupport.addError(ClassCodeVisitorSupport.java:262) at org.codehaus.groovy.control.ResolveVisitor.visitClass(ResolveVisitor.java:1434) at org.codehaus.groovy.control.ResolveVisitor.startResolving(ResolveVisitor.java:262) at org.codehaus.groovy.control.CompilationUnit.lambda$new$16(CompilationUnit.java:739) at org.codehaus.groovy.control.CompilationUnit$ISourceUnitOperation.doPhaseOperation(CompilationUnit.java:902) at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:628) at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:389) at groovy.lang.GroovyClassLoader.lambda$parseClass$3(GroovyClassLoader.java:332) at org.codehaus.groovy.runtime.memoize.StampedCommonCache.compute(StampedCommonCache.java:163) at org.codehaus.groovy.runtime.memoize.StampedCommonCache.getAndPut(StampedCommonCache.java:154) at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:330) at groovy.lang.GroovyShell.parseClass(GroovyShell.java:526) at groovy.lang.GroovyShell.parse(GroovyShell.java:538) at groovy.lang.GroovyShell.parse(GroovyShell.java:570) at groovy.lang.GroovyShell.parse(GroovyShell.java:565) at com.eviware.soapui.support.scripting.groovy.SoapUIGroovyScriptEngine.recompileWithNewName(SoapUIGroovyScriptEngine.java:167) at com.eviware.soapui.support.scripting.groovy.SoapUIGroovyScriptEngine.compile(SoapUIGroovyScriptEngine.java:155) at com.eviware.soapui.support.scripting.groovy.SoapUIGroovyScriptEngine.run(SoapUIGroovyScriptEngine.java:98) at com.eviware.soapui.support.scripting.groovy.SoapUIProGroovyScriptEngineFactory$SoapUIProGroovyScriptEngine.run(SoapUIProGroovyScriptEngineFactory.java:98) at com.eviware.soapui.impl.wsdl.teststeps.WsdlGroovyScriptTestStep.run(WsdlGroovyScriptTestStep.java:159) at com.eviware.soapui.impl.wsdl.panels.teststeps.GroovyScriptStepDesktopPanel$RunAction$1.run(GroovyScriptStepDesktopPanel.java:344) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at java.base/java.lang.Thread.run(Thread.java:833) 1 error See Error Log for details. the followings groovy jars I have in C:\Program Files\SmartBear\ReadyAPI-3.49.0\lib not sure what is missing? thanks in advanceSolved23Views0likes3Comments