-
DataSource: CM1 (row 1): Invalid JSON: unable to find a JSON object, JSON array or a JSON primitive
I am getting this error , which I have not seen before ,my REST test cases were running fine. DataSource: CM1 (row 1): Invalid JSON: unable to find a JSON object, JSON array or a JSON primitive
-
Soa Test
I am not able to save header response i.e HTTP 200 or 500 in the soa tool. please help me to share the code or inbuilt service are present.
-
incremental scan on docker container
Hi We are running cpptestcli to scan our code inside a docker container. Since we start with clean workspace every time, the scan takes too much time. To try to resolve it, we copied ".cpptest" folder to a shared location, then, on the next run, downloaded it to the workspace. the problem is that we still see long scans…
-
cpptesttrace option --cpptesttraceRun-OrigCmd=[yes|no] does not exist
Tool: Parasoft C/C++test Standard 2022.2 Per the documentation below for cpptesttrace, if the option --cpptesttraceRun-OrigCmd is set to "no", then the original command line will not be executed. However, this option is not recognized by the tool (verified via cpptesttrace --cpptesttraceHelp). Was support for this feature…
-
Using Multiple Data Sources
I have a requirement wherein I have 2 data sources (D1 and D2). D1 has 10 rows which will be used to create 10 rows in DB. D2 has 10 rows which will be used to update 10 rows that are created by D1. Flow has to go like this: a) Read first row of D1 b) Process it and Create a DB record. c) Read the record created from DB…
-
Windows Batch File does not run via SOATest
Hello There, I tried all the following options ; using external tool jython script ... , however, soatest does not write out anything and keep running forever.. No error at all. What went wrong in my setting? Basic setting - helloworld.bat file soatest version 9.10 or 2022v1 Any suggestions would be highly appreciated.
-
Is it possible to call a batch file in SOA test using Jython
Hi Team, I tried to call a batch file(.bat), basically i am using the batch file to capture the logs. i have tried running a script in Jython import os os.system("C:\Logs\logs.bat") the extension tool gives success but i dont see the batch file opening. Can some one help on this issue Thanks.
-
How to parameterize the "Variable Condition" field in the "TestFlowLogic" of "Execution Options" tab
I want to parameterize the Variable Condition field present inside Scenario >> Execution Options >> Test Flow Logic >> Variable Condition. I want to take the value from "Environments" or "Data Sources". The traditional way of specifying "${some_variablename}" is NOT working
-
Diff Tool
Could you provide more information on how to use the Diff tool. I would like to compare the response from a message responder with the response from the corresponding live service. What's the best way to set that up? Thanks, JT
-
How to execute DB tool in a loop
Hi, I need to execute DB tool query in a loop based on the count is fetched at run time which depends on the number of array elements in my json payload. Kindly help me with a solution, Thanks in advance!!
-
cpptest failing on command line but working with Eclipse
Using the Parasoft plugin for Eclipse, I am able to run Parasoft test configurations successfully. Trying to run the same test configuration using cpptestcli results in a error message and a stack trace in the error log. The Parasoft version is C++test Professional 2020.2.0 (10.5.0.20201022B1126). The error output is…
-
Upload of a Local File using soavirt API
Can you provide the json request payload and headers to upload a .csv from my local environment to the Virtualize server? Assume my file is located c:/files/accounts.csv and I want to place it in /VirtualAssets/files Thanks JT
-
Re-Deploy VA Not Working
I am finding that the REST API call to re-deploy a virtual asset is not working for me. I have some fairly sophisticated scripts running against the API to generate virtual assets and responders, so I am fairly certain my process is not the problem. I am making a POST request to /soavirt/api/v6/virtualAssets/redeployments…
-
How to execute a data base correlation SQL query from the Responder Output - extension tool
I have a responder which executes a Data source -> data base correlation and I have chained the outputs to the responder and in one of the outputs I am setting the variable value that is used in the data base correlation, now in the next output I have to execute the data base correlation and fetch the database values. Can…
-
Insure++ 2023.1 Release Announcement
What's New * STL checking is now enabled for GCC-5 thru GCC-10. There are, however, some outstanding issues. STL checking is an extended and experimental feature of Insure++ which may be helpful in finding STL usage violations. See STL Checking in the User's Guide. * Several parser improvements. * Bug fixes. Known Issues…
-
CSV file newly generated in a local folder , how can we use the latest sheet in subsequent step ?
Once a job is completed. A csv file will be loaded in a local folder like example : c drive. Latest transaction file should be picked up for the testing is the scenario under concern now. we should be able to pick the latest file on that particular day and time and use this data source in subsequent step.
-
How To Deploy Virtual Asset via SOAVIRT API
I am generating a virtual asset using the API and populating it with message responders. On a server that has auto deploy set to true, the VA is automatically available for use. When I create it on a server with auto deploy set to false, the VA is visible under workspace files but, it is not deployed. Given the VA is…
-
Amount of issues found with eclipse is different than with cpptestcli
When we analyze our code from Eclipse we use the compile_commands.json file as input. Then we click on the project name and start the analyzation. When we use cpptestcli on terminal the build_commands.json file is also used as input. We set the -workspace argument and the ruleset which should be used. The result is…
-
Modify Databank element value (number)
Greetings, I'm using a REST Data Bank to get a row number from the Endpoint URL (for example /Row/1), and then I need to subtract it by one to use it in a JSON Databank to get the first item (index 0) from a Messaging Client Response. How can I modify that value before using it? Thanks
-
Nothing to do. Please use -help to get more information. 21(error) exit
If you met some console like above while Generating a executable. Do worry, try this solution. Check your project properties configuration, and check the linker configration. Then check the path of .o file, maybe your miss a ". the code maybe like this:${cpptest:original_options} C:/code/startip.o" Add the missing ", try…
-
Execute REST API based on DB Tool Output
My requirement is to read a database which will fetch 2 columns and can return more than 1 row. Then for each row of the DB output, an REST API has to be called. Ex: If DB rows return 3 rows, then REST API has to be called 3 times with 3 different set of values. Could you guide me how to achieve calling REST API based on…
-
Is there a way to clean an entire dataset using the Dataset CRUD tool?
I need to clear all the rows of a dataset before filling it with updated data, to keep a reflection of a database. Is there some way to delete all the previous data before starting to add the new rows? Thanks
-
How To Set Min/Max Delay Time On Responders Created VIA SOAVIRT API
I'm creating a VA and adding message suites/responders using the API. I don't see much support in the API for setting performance aspects of the responders. Looks like there's a PUT call to update the VA/message suite and you can add profiles and groups with min/max. I created a profile called "Normal". I am not sure how…
-
/v6/virtualAssets/{id}/activePerformanceProfiles Usage
Can you provide an example of enabling delays in responders via SOAVIRT API. Especially a complete example including /v6/virtualAssets/{id}/activePerformanceProfiles. Thanks JT
-
Saving HTTP Response Code
Hi Parasoft, I am trying to figure out how to save response HTTP code (200, 500) and added a Header Data Bank output item, but I do see anything that looks it would be for the header code. . Here is what is returned: HTTP/1.1 200 Content-Type: application/json;charset=UTF-8 Date: Thu, 01 Nov 2018 16:22:46 GMT Vary:…
-
SOATest runtime error 'No browser set' even though it appears to be
Hi! I am setting up SOATest (2021.2) on Windows Server 2019 replacing the Windows Server 2012. I have a number of tests that run in a browser. On the old server and on my laptop, the tests run like they should using Microsoft Edge browser. The test are unchanged on the new server but when I try to run them, I get the below…
-
How to verify content of Response Header contains a given string
I have a REST API call that returns the following in the Response Header: Content-Disposition: attachment; filename=cmdownloads.zip I need to verify that the filename is "cmdownloads.zip" (in this case). I captured the Header in a Header Bank but am unsure what to do next. I have tried converting it to XML and think I…
-
Need assistance accessing a Java Class
I could use some guidance on how to access a Java method within SOATest. I have built a pretty basic class to get LocalDate, add days, subtract days and return the Epoch date. When I select "script" for the element I select Java and put in the full path to the class. The methods appear but I can not figure out how I can…
-
Virtualize Setup
I have completed our POC for Virtualize and have management on board with getting it setup and going. As I wait for the resources from IT to get a new environment stood up I am hoping to gather some best practices from the community that will help with having a smooth setup and transition to using it. Are there any…
-
Unable to configure MongoDB Query Tool in Parasoft SOA Test & Virtualize 9.10
Hello, per Parasoft guidelines I tried adding MongoDB Query tool jar to my Parasoft SOA Test & Virtualize 9.10 version. When I click on Add Jars button of System properties section, I see only mongo-java-driver under org.mongodb and didn't find mongo db Query Tool in available jars list. Any thoughts?
-
where we can find user guide for Parasoft virtualize
Hi Team, Please suggest where we can find user guide for Parasoft virtualize
-
C/C++ Test Desktop: Set the ruleset inside project.properties
I'm using C/C++ Test Professional 2022.1 (Eclipse). Is there a possibility to set the ruleset inside the project.properties and execute the tests from the GUI without having to select a ruleset every time? We want to make sure that the same ruleset is always used.
-
Does Parasoft have an application for Test Management? If not what apps do clients use?
I know CTP enables continuous testing and provides test database configuration, otherwise not real familiar with that product. On the database matter, I don't think that works well for my company because there are key dependencies within the product tested and outside that are subject to change from one release to the…
-
Test unitaire en c
Bonjour s’il vous plaît je suis débutante en c et j’aimerais apprendre à ecrire des programmes test
-
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":…
-
I am tyring to access the results of SOA test from SOA API. I am getting the following 403 error.
HttpGET http://localhost:9080/soavirt/api/v6/status/health Response: Error: Forbidden { "message": "Access forbidden, server does not have appropriate license feature enabled. Both [Virtualize - Service Enabled] and [SOAtest - Server API Enabled] are needed.", "moreInfoUrl": "http://localhost:9080/soavirt/api", "status":…
-
How to solve the "Test execution: error precompiling file" problem?
I am using visual studio plugin for unit test generation and cannot execute test. It identifies some test files and drop "Test execution: error precompiling file" error message. Attaching the screenshots of test explorer. Generated test file also throws the error "fuction is inaccessible". I would be very grateful if…
-
Blank Spaces in Path in Linux Machine
Hi, I am using Windows Machine for our development work and ultimate deployment is with a Linux Machine. In my .tst file, I have below steps configured. 1) Get Project Location using absolutefilepath() 2) Execute a DB query and I am storing the results of query to XML Converter for converting them to CSV. Then I am taking…
-
WARNING: invalid compiler option -E (ignored)
How do i resolve this issue? All the files in my current execution are being skipped. [ERROR] Code Analysis for .c finished with code 1 (ipro) 1. >> WARNING: invalid compiler option -E (ignored) error: argument to option -x (#) is out of range Error preprocessing file ".c": Process exited with code: 1 Could not preprocess…
-
/soavirt/api/v5/testExecutions - Example Request Payload
Can you share an example rest payload for /soavirt/api/v5/testExecutions
-
How to restore working directory from GIT
Hi, how are y'all doing? I have a question: while usiing Parsoft 9.10.6 for a workspace having a project containing the master test suite modules and a "runnable" project containing references to the test suites, all very basic still. I use GIT as source management/version control. My working directory (where I initially…
-
Extract REST API Output(Literal) to Databank without External File Usage
Team, I have a REST API which gives output just as a literal and not in JSON/XML output. I wrote into a file and then wrote a Python Script to get into JSON databank. Is there any way to get output in JSON/XML without writing into a file.
-
Announcing Parasoft dotTEST 2022.2
dotTEST (2022.1) is now available! Support for .NET 7 Support for .NET 7 has been added. See Supported Frameworks. Support for C# 11 dotTEST can now analyze code written in C# 11. IDE Integration Support for visualizing code coverage in VSCode dotTEST extension has been added. Setup problems can now be displayed in the…
-
How to extract any value from a response argument and write it to external excel/csv file?
Hi Team, Can you please help how to extract values from the response and write it to an external file excel/csv. for example: if am getting a response like below { "status" : "success", "wonum" : "1234567" } Expectation is to extract "wonum" response value in the external file.
-
Passing External Excel Files Between .tst files being called from Bamboo
Hi, I have 2 .tst files. First, the .tst file will be reading DB and fetching some records which have to be provided as input to the 2nd .tst file. We cannot have these two .tst files merged together as they have to run in some time gap. These .tst files will be executed from the bamboo pipeline. Any reference to local…
-
How to remove warnings from IAR Embedded Workbench
warnings are: Warning[w29]: Parts of segment data are initialized (as in module XYZ), even though it is of type XDATA (and thus not promable) Warning[w29]: Parts of segment ?FILL3 are initialized (as in module ?FILLER_BYTES), even though it is of type XDATA (and thus not promable) Warning[w29]: Parts of segment EEPROM_AN…
-
com.parasoft.traffic.proxy - Bypass Certain URLs
I am using com.parasoft.traffic.proxy on a corporate network so my BAU web proxy is disabled when I am recording. Most traffic records fine, however I am seeing one set of requests where the endpoint is not being reached. Are there args I can pass to the proxy.jar to tell the proxy to bypass certain endpoints?
-
Update/remove default headers using Extension Tool
Is there a way I can remove a default HTTP header being sent by response? for example, removing Content-Length key and value from the response headers.
-
Multiple data sources logging error
I have created a table data source with list of values and other excel databanks parametrized to other fields. Sometime they run fine if we have only one databank. Any special steps to follow to have multiple databanks support the scenario and sub scenario of test suite.
-
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…