I would like to know whether my test is failed or passed through scripting (groovy). As on failure, I need to run some logics through scripting only.
I have declared some environment variables and trying to read them in the extension tool. When i am trying to execute throwing the below error. Error:No Signature of the method: org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.$() is applicable for argument types. Below is the code i have used. import com.parasoft.api,*;…
While I am testing REST API I get such kind of error messages: I don't want Parasoft to validate if date format is valid. I want to switch off this in Parasoft. Is it possible? If yes, how? What I want - everything as input should be interpreted in Parasoft as a string. And then endpoint will decide, if the input string is…
I'm querying the db and later added a JSON Assertor to verify a last row value of specified column. XPath: Result: Question: How to get the last value in the list? i.e. Honda
I've multiple environments (like QA, SIT, UAT) where test suites executed. I'm getting the report in my inbox, but I need to have active environment name in subject line, like report.mail.subject= API Execution Report - {Environment name where it executed} I tried these but won't fetching the environment name - env_name,…
I have doubts when passing this jython code to java code in Extension Tool "def ObtieneXML(input,context): entrada = context.getValue("Generated Data Source","DNI"); entrada = entrada.strip(); context.setValue("DNI2",entrada); context.getValue("DNI2");" if someone knows how to pass that code to java, please help.
I have a requirement where I need to generate the payload dynamically before sending the request to a service. Here, I have total 30 test cases where the structure of the payload is different for each test cases. Our main XML payload: <?xml version="1.0"?><catalog><book id="bk101"><author>Gambardella,…
I want to use variable in groovy script which I have defined in json data bank's custom column name section.
I have an xml as input and I retrieve the values in xml databank But I am not able to retrieve it if for all elements at one go For Fist element I get Passed if (/testsuites/testsuite[1]/testcase[1]/failure[1]/text() ) then "Failed" else "Passed" but If kepts as if (/testsuites/testsuite[1]/testcase/failure/text() ) then…
Problem populating dropdown fields in web app using SOATest 9.10.8. I have a web app that I created a number of tests in SOATest using Parasoft Recorder running in Chrome. After I imported it into SOATest I replaced the Fixed data that is input into the screen with Parameterized data from a data source table defined in…
It looks like you're new here. Sign in or register to get started.