-
How to validate uniqueness of a field value in the JSON response.
Hello everyone, Can someone help me how to validate a field, if the value returned in response in unique and contains no duplication. E,g: In below JSON, id field occurs multiple times, I want to validate "id" is unique and it's not duplicated in the JSON response. { "merchantCategories": [{ "id": "0001", "description":…
-
ExecutedTestsDetails is empty in report.xml after upgrading
We were using the Parasoft version 10.4.3 and then we upgraded to 2020.2.0 version. After upgrading the report doesn't display anything related to the Executed test Result, When i check the report.xml the ExecutedTestsDetails tag is empty but it is working good in 10.4.3. Other than Test execution details all the other…
-
How to use java in pva project
Hello! I'm new using parasoft but i don't understand very well how i can integrate a java application in the response of one Virtual Asset. I hava a web server that i want to virtualize which sends a xml with several values, as below: REQUEST: < items> < item id="1">5000< /item> < item id="2">4000< /item> < item…
-
Enabling TLSv1.2 in SOAtest/Virtualize
Parasoft: Enabling TLSv1.2 in SOAtest/Virtualize: Description: SOA/Virt 9.10 and up now comes prepackaged with Java1.8 which has TLSv1.2 enabled by default. The Java version that comes with all the previous SOA/Virt versions does not. If you are using SOA/Virt 9.9.5 and below, there are two methods to enable TLSv1.2.…
-
Code to save Traffic's Element View Response in file.
Hi Guys, I'm looking for a code which let me save rest service Element View response in some txt file.
-
Call Java Function in JAR File
I have a java function outside of the message flow I am testing that takes a string, processes it, and then returns another string. I need to call this function and store the returned string for use in another test. Do I want to use the External Tool, Extension Tool or something else? How do I connect to the jar file?…
-
parasoft jump start project query
Im creating test scripts using the java code through the parasoft jum start project and i was able to create a rest client with Input Mode as literal and pass the payload directly as a string but i need to pass the input payload from a File for which i dont see the option in the availble code. i have the following code to…
-
Using Atomic Variables to Better Handle Updating During Concurrency
The following forum post goes into detail on creating scripts to better handle changing values during performance tests with multiple hits in parallel. We will do this with the use of Atomic variables and in the case of this forum post example, specifically AtomicLong. AtomicLongs and the other Atomic variables are part of…
-
ArrayList and LinkedList in Java
Hello Everyone, I am confused to understand why does ArrayList takes more time to insert elements at the beginning than LinkedList in Java? Can anyone know the exact comparison between ArrayList and LinkedList?
-
Groovy Scritping not allowed in Community Edition ?
Hello, While creating a response for a request in virtualiser , I saw an scripting and when clicked bydefault groovy language was selected and an editor appeared on my screen.But I couldn't type anything there ,is this feature only for paid license?If not then any tutorial on the correct approach to use it.
-
Soa is crashing while run the Exension File
I am using a extension tool where I am running java script .This script contains winium driver and sikuli apis ,when ever I am running this script.My soa crashed and showing the Error ,as you can see in the attached screenshot .I tried every possibility like add the eclipse ini file add both -vm and mention the javaw.exe…
-
Returning only 500 Internal Service Error instead of 200 with response
Is there a way to set up my mock to only return a 500 error if we enter in a unique value correlated to this? For example right now we have our mock set up to look for "JORDANS_CATEGORY" and this would return a valid response (200) that is set up in our traffic file. Is there a way to return only a HTTP status code instead…
-
Can parasoft understand a java program which reads xml in java an convert it to string?
I have an XML file that contains only 2 parameters that can be parameterized - Country Code and Request. However I want to read the body in tag and convert it into text so that it can be used for correlation. Kinldy help.
-
Run .Tst file from Java
Hi, Could you please help me to run .tst file from java and capture result.
-
soatestcli unable to execute scripts having java code.
I am trying to run soaest scripts using soatestcli but ending up with lots of java code error saying "class not found." as I am using localsettings in this case do i need to make any changes so that my classfolder should get loaded along with scripts when run by soatestcli.
-
Invoke soatestcli to run selenium TCs in soatest.
Hi Team, I have some selenium TCs present in soatest, where I am able to execute those after inserting all jars there. But if the same thing I am doing with the help of soatestcli I am unable to do that. It throws error selenium class not found. I know I need to wrap that into jars and pass the path in localsettings file.…
-
Where does SOAtest show console output of a Jar?
We are using a JAR by one of the dev teams to communicate with an external payment service provider. The java code in the JAR includes some logging to console using simple 'System.out.println(...)' statements. Why can I not see these Statements in the SOAtest console? Which console do they go? Is there a way to view these…
-
Modify Classpath feature in CTP??
Do we have modify classpath feature available in CTP as it's available in SOAtest desktop version.
-
How to use system properties feature in CTP??
As we have system properties feature in SOAtest how to use same feature in CTP. i am not sure whether this feature exist or not in CTP but can anyone let me know.
-
How to generate Report in CTP for any Job headlessly??
Requirement: Generate Report for any job in CTP without interacting CTP portal. Is there any REST API or URL to generate the report & to send out to different emails. I am looking this in CTP using headless concept.
-
Configuring Class Path in CTP. or How to use java in CTP.
Hi Guys, I want to configure classpath in ctp to use java but unable to that. kindly help me.
-
soatestcli unable to execute .tst that has selenium and dependent modules.
I have created one tst in soatest which invokes selenium and some other dependent jars. If executing through SOAtest everything is working fine but if trying to execute through soatestcli getting errors saying "selenium apis and parasoft apis are missing or not found." Note:I am invoking soatestcli thorugh remote pc via…
-
How to Change the java versions 1.7 in parasoft soatest 9.10?
I have certain jar files to be loaded into "Parasoft Preferences > System Property" which requires JAVA "1.7" but SOATest 9.10 have "1.8"... so i need to downgrade Java to 1.7... so i can submit a claims. Any suggestion?
-
How to Get the Execution Status of TestSuite TCs??
Hi Guys, I am looking for script or anything else which can help me to identify no of TCs got pass or failed. Though I can achieve this functionality using extension tool and executions options but looking for direct script which can return me status true or false.
-
How to Convert HTML to XML in SOAtest.
Hi Guys, Struggling to convert HTML to XML in SOAtest. Though I tried using XML Transformer with selecting mime type text/html but unable to convert. Any help would be appreciated. :smile:
-
Explicitly Passing any Test in SOAtest.
Hi Guys, As we have ****Context.Report()**** method to explicitly fail any scenario.Do we have any method to get it Passed or Success explicitly.
-
Increasing performance with the DTP Engine for Java
For big projects and configurations that have enabled a great quantity of rules (corerules ~650 rules) or memory demanding global rules for the test run, we recommend increasing the Java Virtual Memory for the DTP Engine for Java. According to the article https://dzone.com/articles/java-8-permgen-metaspace, Java 8 has…
-
Getting java error, when trying to open a project/tst file.
Error Details: java.io.ioexception:com.ctc.wstx.exc.WstxParsingException:Received non-all-whitespace characters or cdata event in nextTag(). at [row,col{unknown-source}]:[8348,48]. Please help with resolving the issue.
-
Changing the LoadTest Java Version
Edit: To incorporate benken_parasoft suggestion: To change the Parasoft Loadtest Java versions: * Execute Parasoft Loadtest with the "-ask" argument: * A menu will pop up with choices of different Java versions that can be detected and an option to point to a Java installation manually: * Selecting "Ok" will initialize…
-
Using Java API calls from SOAtest
Hi, I am working on a project where we need to do some load testing against a third party Java SDK API. I know the method calls, which are just search executes and have some of the Java code to call these methods. However, I am not familar with how to use SOAtest to do some load testing against this third party product.…
-
How do I add additional CLASSPATH's to SOAtest?
If you would like to use custom Java classes with SOAtest the following method. 1) Click the Customize Preferences button in the SOAtest toolbar (Alt+F2). Click the "System Properties" tab and add any required class folders or Jar files.