-
Capture current Environment being tested
Within a run of a test, is there a way to capture the current Environment that the test is being executed against? I know I can add a variable to each environment with it's name, but that is not ideal for our 40+ environments across multiple test suites. Looking for something like scriptingContext.getEnvironmentName or…
-
DB output converting to excel
I have a scenario where i need to convert DB output to a Excel. I have tried out "write file" with the below details Target name : filename.xlsx Target Directory: path A xlsx file is created in the path, but i am unable to open it. It is showing file format is invalid or corrupted. Can some one help me on this
-
How can I integrate parasoft with event-driven microservice architecture model(pub/sub)?
Hello Team, We are using event-driven microservice architecture model(Pub/Sub) for my project and planning to integrate Parasoft SOAtest and Virtualize. can you please help me on this integration. we are using RabbitMQ as message broker. Pls share if you have any link for reference
-
How to create a rule in RuleWizard to check if the filename contains the foldername?
I want to create a rule that checks if a filename contains the foldername at the beginning of the file, for example: I have a folder named "folder1" containing a folder named "folder2" which contains a c file. This file should be named: "folder1_folder2_myFile.c" Is it possible to create such a rule with the rule wizard?
-
How to know whether my SOATest script is failed or passed through Extension tool scripting?
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.
-
Need to send response via TCP/ip connection
I need to configure a pva asset where I can send the response back via TCP/ip connection. Please help in getting this done.
-
Need help in getting com.parasoft.virtualize.listener.socket-1.1.1.jar
Please help and let me know from where can I get com.parasoft.virtualize.listener.socket-1.1.1.jar
-
How can I apply a regex rule to a URL Path?
Problem: Given the URL: server.com/Responder/param1/value1 I want the value1 to be a number 18 length digits only, so when I call e.g.: param1/123456789123456789 the test should PASS and param1/1234abc should FAIL and then, whatever comes in as value1 should be returned in the JSON response. My questions are: where can I…
-
Unable to read environment variables in extension tool
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,*;…
-
How can I generate test suites using jtest in cli mode?
As title, How can I generate test suites using jtest in cli mode?
-
License Server Administration ID and Password
I have a question about the standalone license server. I would like to change the default userid and password for logging into the server administration. I have looked around inside the server administration but did not see anything about changing this and then searching the forums I did not find anything here either. The…
-
Column is not a valid date
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…
-
Announcing Parasoft dotTEST 2021.3
The new release of Parasoft dotTEST (2021.3) is now available. In this release, we focused on the following areas: Support for Visual Studio 2022 Support for .NET 6 Support for C# 10 Fixed Log4j vulnerabilities (version 2.17.1 included) Static analysis rules improvements And much more! We have also removed support for UI…
-
I need some suggestion to handle multiple data source.
Hi Team, While trying to virtualize one of my service (PriceAndAvailability), i faced some issues to handle multiple data source. let me describe my case below. * I need to virtualize PnA service, which takes single or multiple "IngramPartnumber" as request parameters. * let say, if i create an API test case for one ingram…
-
Need a faster way to merge results from clog files
I am attempting to merge 20k clog and tlog files using the load archive test configuration but it is simply taking too long for this to be feasible. Merging 20 files alone takes 40mins. Is there a better way to do this?
-
Parasoft not using autogenerated stubs
Hello, I am currently trying to use Parasoft with a colleague and I am running into problems with the autogenerated stubs. I wrote a unit-test suite and let parasoft generate the stubs for them. I then gave the files to my colleague and when he tries to run the tests it doesn't work because it won't use the autogenerated…
-
How to verify whether a file is present in particular path or not.
I have a scenario where after hitting the API, a File will be generated in particular path. I need to validate whether a file(CSV) is present or not(Both positive and negative). Can Some one help me how to do this.
-
How to access/get last value from XPath result
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
-
Does upgrading Parasoft to latest version of Virtualise and SOATest affects virtual and test assets
Does upgrading Parasoft to latest version of Virtualise and SOATest affects virtual and test assets
-
How to access active environment name in localsettings.properties file
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 need to pass jython code to java
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.
-
Dynamic request payload generation for different test cases
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,…
-
How to properly set up a unit test with a data source?
I'm trying to set up a unit test that imports a file of inputs and outputs as a data source. I think i've got the columns mapped properly, but every line reports "Signal SIGSEGV caught: segmentation fault [CPPTEST_SIGSEGV]", coming from the suite .cpp file where the data source is declared:…
-
How to solve the "Invalid compiler config file error" in "Flow Analysis Standard" test
Hi I am using Flow Analysis Standard in parasoft 10. My c project has been compiled in keil without any error and I imported it to parasoft using uvision keil project file. Then I run the Flow Analysis Standard but it issued this error "Invalid compiler config file" for all source files. Two tipical error messages are as…
-
Setup Problem for Static Analysis: Invalid compiler config file
Hi I am using Flow Analysis Standard in parasoft 10. My c project has been compiled in keil without any error and I imported it to parasoft using uvision keil project file. Then I run the Flow Analysis Standard but it issued this error "Invalid compiler config file" for all source files. Two tipical error messages are as…
-
how to activate virtualize community edition license on linux?
I am starting the service with the following command line: ./parasoft/soatest_virtualize/2021.2/virtualizecli -startServer -data /usr/virtualize/VirtualizeWS/ -localsettings /usr/virtualize/localsetting.properties The content of the properties file is: server.port.http=9080 server.port.https=9043…
-
CTP query SQL DB using Integrated Security
I am trying to query sql server 2016 DB. I have the sqljdbc42 jar in the system_jars folder on the soavirt server. Where do I put the sqljdbc_auth.dll file or do I need this? On local machine I have in in my windows system32 folder and the jdbc driver installed. Is there a special place to put it on the server when using…
-
How do I configure cpptestcli to control what is included ?
I have problems with following error message: Test execution: error preparing instrumentation / symbols data for file. In file included from C:\BuildRoot\IO\FCI\CI846\MainTrack\Dev\Current\MCU\Workspace_UnitTests.cpptest\FCI_PROFINET\file-data\CCRC32.cppc160100f\bundled_CCRC32.cpp:4:…
-
How to take key which defined in json data bank's custom column name box in the groovy script?
I want to use variable in groovy script which I have defined in json data bank's custom column name section.
-
Is there a way to extract all the elements of a xml using condition in select xpath
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…
-
Number between Range Xpath Condition
/:Envelope/:Body/:Test/:TestHeader/:TestBody/:TestData/:TestID /:IDValue[text() >= "XXX"] I would like to write _**IDValue condition between range >=1 to <100 **_.I tried above condition but it is not working as expected. Could you please tell me How to write xpath for number range by using soap request xml._****
-
Which language are your Selenium test written in?
-
Which API Management System do you use?
-
Web app dropdown fields not populating
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…
-
Update Data Source
I want to insert (create a new row) in a data source from a value extracted from a Message Client response. The value is a session id. There is no need for this value to persist after a redeployment of the virtual asset. I just want to hold it in the local data source for data correlation for another request further down…
-
[Updated] Regarding log4j CVE-2021-44228 with Selenic
NIST recently released several Apache's log4j Zero-Day vulnerability cases, a very popular Java library to log messages in Java Applications. * CVE-2021-44228 (https://nvd.nist.gov/vuln/detail/CVE-2021-44228) * Parasoft products released this year (2021) include log4j 2.14.0 library. Parasoft confirms that these releases…
-
[Updated] Regarding log4j CVE-2021-44228 with dotTEST
NIST recently released several Apache's log4j Zero-Day vulnerability cases, a very popular Java library to log messages in Java Applications. * CVE-2021-44228 (https://nvd.nist.gov/vuln/detail/CVE-2021-44228) * Parasoft products released this year (2021) include log4j 2.14.0 library. Parasoft confirms that these releases…
-
[Updated] Regarding log4j CVE-2021-44228 with CTP
NIST recently released several Apache's log4j Zero-Day vulnerability cases, a very popular Java library to log messages in Java Applications. * CVE-2021-44228 (https://nvd.nist.gov/vuln/detail/CVE-2021-44228) * Parasoft products released this year (2021) include log4j 2.14.0 library. Parasoft confirms that these releases…
-
[Updated] Regarding log4j CVE-2021-44228 with Virtualize
NIST recently released several Apache's log4j Zero-Day vulnerability cases, a very popular Java library to log messages in Java Applications. * CVE-2021-44228 (https://nvd.nist.gov/vuln/detail/CVE-2021-44228) * Parasoft products released this year (2021) include log4j 2.14.0 library. Parasoft confirms that these releases…
-
[Updated] Regarding log4j CVE-2021-44228 with SOAtest
NIST recently released several Apache's log4j Zero-Day vulnerability cases, a very popular Java library to log messages in Java Applications. * CVE-2021-44228 (https://nvd.nist.gov/vuln/detail/CVE-2021-44228) * Parasoft products released this year (2021) include log4j 2.14.0 library. Parasoft confirms that these releases…
-
[Updated] Regarding log4j CVE-2021-44228 with C/C++test
NIST recently released several Apache's log4j Zero-Day vulnerability cases, a very popular Java library to log messages in Java Applications. * CVE-2021-44228 (https://nvd.nist.gov/vuln/detail/CVE-2021-44228) * Parasoft products released this year (2021) include log4j 2.14.0 library. Parasoft confirms that these releases…
-
[Updated] Regarding log4j CVE-2021-44228 with Jtest
NIST recently released several Apache's log4j Zero-Day vulnerability cases, a very popular Java library to log messages in Java Applications. * CVE-2021-44228 (https://nvd.nist.gov/vuln/detail/CVE-2021-44228) * Parasoft products released this year (2021) include log4j 2.14.0 library. Parasoft confirms that these releases…
-
[Updated] Regarding log4j CVE-2021-44228 with DTP and Standalone License Server
NIST recently released several Apache's log4j Zero-Day vulnerability cases, a very popular Java library to log messages in Java Applications. * CVE-2021-44228 (https://nvd.nist.gov/vuln/detail/CVE-2021-44228) * Parasoft products released this year (2021) include log4j 2.14.0 library. Parasoft confirms that these releases…
-
Data Range Assertion
my xml file has a execution date " 26-11-2021T11:59:59" my expected output date is Trade Date + 1 so something like this 28-11-2021T11:59:59 How can i validate this logic and how can i assert this ? And this will vary for various trade events . Can some one help me please?
-
Python or Jython script to change a value in XML file and update to a new value and use as data
My scenario: I want to execute a query and get XML , store in output file, picked up in python and changing few values inside XML and again using it as data for subsequent story
-
Collect Stub Information does not add make_shared in Stubs view in Parasoft C/C++test 2021.1
I am trying to stub the make_shared which is an inline function, to get 100% decision coverage but the Collect Stub Information Test configuration is not adding it to the Stubs view. Here is how I use it in ATM example of Parasoft std::shared_ptr foo = std::make_shared (10); if(foo == null) { // error statements (not…
-
Configuration problems after source update
I had a project with some tests for embedded product. As we are on active development we have usually update our source files in C/C++ test. If the is any tutorial how to update sources I will be very pleased. After this update, I deleted my old generated stubs for this project as they were deprecated. When I tried to…
-
Licensing: Unstable/changing Machine-ID
Changes in the network environment may affect the interface that is used to compute your machine ID (used to identify your license) and result in machine ID instability. You can use the PARASOFT_SUPPORT_NET_INTERFACES environment variable to specify a stable interface and prevent the machine ID from floating. * Set up the…
-
Request timed out when hitting parasoft.com:8080/examples/servlets/Echo
Hi, I am trying to hit http://ws1.parasoft.com:8080/examples/servlets/Echo to echo my request (which has parameterized values ) and get a plain response. I am using the Mentioned end point from the past 3 months and now from last week I am getting a time out message on hitting the endpoint. Please help me with this issue.…
-
Parasoft C/C++ test not appearing on the VS toolbar
Is any experiencing an issue where Parasoft C/C++ test is not appearing on the VS 2019 toolbar? I can see that Parasoft is installed as it's showing in the VS About box. Also if I launch VS2019 without code, maybe one in every ten times Parasoft will appear in the toolbar. I can then load a project and successfully run…