-
Validation
I have one field in my json as Price : “40.0” ( in string) In json assertor , i am using numaric assertion to validate but its passing where expectation is it should fail as its not integer. How to validate that?
-
How can I restart a test where it left off?
I have a datasource with thousands of rows. Sometimes I need to stop the test (that includes REST API calls). I would like it to resume from the last line executed. It can be done?
-
Stub function are not executing.
In our test application, We have multiple test suits, We created stub for mq_timerecived function used in file many source file. When we executed test application, Stub is called only on 1 test suites and for other test suites even though we registered Stub callback function in test cases, Its not calling stub and stub…
-
How to fetch value from database base and pass in another call
I am using DB tool to write query and fetching All Id messages (will have in xml)and then i am using rest client and want to pass those messages details in payload but how to do that? I want to use individual req for each id and want to pass directly to payload
-
AUTOSAR A7-1-3 - False positive on "const" qualifier
I'm using Parasoft C++Test Professional 2023.1 and I'm getting false positives on AUTOSAR Rule A7-1-3 which states that "CV-qualifiers shall be placed on the right hand side of the type that is a typedef or a using name" Take this example: #include <cstdint>#include <typeinfo>#include <iostream>#include <string>namespace…
-
SOAtest, Virtualize, CTP 2023.2 Product Release Announcement
We're pleased to present the newest version of Parasoft SOAtest, Virtualize, and CTP, focused on enhancing your software quality practices with efficient and reliable test automation. This release introduces seamless integrations with OpenAI and Azure OpenAI LLM providers, enabling effortless generation of API tests from…
-
SOAtest, Virtualize, CTP 2023.2 Product Release Announcement
We're pleased to present the newest version of Parasoft SOAtest, Virtualize, and CTP, focused on enhancing your software quality practices with efficient and reliable test automation. This release introduces seamless integrations with OpenAI and Azure OpenAI LLM providers, enabling effortless generation of API tests from…
-
SOAtest, Virtualize, CTP 2023.2 Product Release Announcement
We're pleased to present the newest version of Parasoft SOAtest, Virtualize, and CTP, focused on enhancing your software quality practices with efficient and reliable test automation. This release introduces seamless integrations with OpenAI and Azure OpenAI LLM providers, enabling effortless generation of API tests from…
-
SOAtest, Virtualize, CTP 2023.2 Product Release Announcement
We're pleased to present the newest version of Parasoft SOAtest, Virtualize, and CTP, focused on enhancing your software quality practices with efficient and reliable test automation. This release introduces seamless integrations with OpenAI and Azure OpenAI LLM providers, enabling effortless generation of API tests from…
-
Load testing of login page
Hi, Can anyone share me the steps for doing load test for urls with user name and password.
-
parameterization of xpath
Can i parameterize the below path instead of hardcoding- /root/item[type/Id/text()="123"]/Price/Amount I want to parameterize id .
-
Unable to Access Adobe Document in Browser Application
I am running a Selenic Junit test that is trying to insert a string in a text box in an Adobe eSign document. This is opened inside of a Java application running in Microsoft Edge. I then want to click a button also in the document to continue processing in the Java app. The problem is Selenium says there is no such…
-
ISO 8583 Setup
Could you provide some detailed instructions with screen shots and context around setting up an ISO 8583 listener in Virtualize and then testing it with SOAtest? Thanks, JT
-
how to validate data via xpath in json assertor
I have json data in below format and i want to verify that for perticluar source id"67678" amount is -100. i tried to give below path using json asserort and tried converting json to xml and use xpath but that did not work. /root/item/Ancillary[Id/string()="67678"]/Transaction/detail/Amount { "Type": "Mas", "Date":…
-
Json file validation
I have json file and i want to validate if some column like bank and corresponding value abc is not available in the file. Can any one suggest me how to do that
-
How does cpptestcli choose MSVC compiler and the purpose of compiler configuration files
Hi all, I am trying to understand the behaviour and relationship of cpptestcli with Microsoft Visual C++ (MSVC) compiler. My question is: * How does Parasoft choose the default MSVC compiler to use? When specifying the compiler configuration using the -compiler property, specifying vc_14_2-64 (64 bit version of compiler)…
-
How to validate json using groovy script
Hii, i want to validate below json column and their value using groove script but it seems bot working for me. Can anyone let me know [ “Type” : health “Date”: “2021-09-09” { Department { “Name”: “abc” “Id”: “123” } “Expensive” { “Type “ : “abc” “Amount “: “123”}
-
unknown target 'gcc_ntoaarch64'
While running the Unit Testing for QNX app I am facing the below issue: * Test execution: error linking test executable for Test unit for selected sources. cc: unknown target 'gcc_ntoaarch64' cc: targets available in C:/Users/t0075a4/qnx710/host/win64/x86_64/etc/qcc/gcc: 8.3.0,gcc_ntoaarch64le 8.3.0,gcc_ntoaarch64le_cxx…
-
Why does the C/C++ test link to files not in scope when running unit test (file scope)?
I am following the instructions at this link: https://docs.parasoft.com/pages/viewpage.action?pageId=134835090 I am doing a unit test only on a single file selected in the project explorer. I am creating stubs for this file and then running unit test. However, on executing run unit test (file scope), the C/C++ test is…
-
password encode
I am asking for you assistance to successfully encode via cpptestcli.exe (PC client) a password containing a "space" character. Thank you.
-
Sql query
I used sql query to fetch the data count from data base and i want to validate the count is matching with data file count i have. Can anyone suggest me how to do using soa tool
-
Changing compiler options in settings
I'm trying to use cpptestcli for Unit Testing and I need to add the -DCPPTEST_THREADS=1 option during compilation. The documentation only describes how to add this option inside the IDE and for a single project, but by exporting its build settings and by locating the property to modify I managed to use it on the CLI by…
-
Using Selenium with Firefox Snap (Ubuntu)
Ubuntu now provides Firefox as a Snap package. The WebDriver for Firefox (geckodriver) is not compatible out-of-box. From the release notes: They provide a work around: How do you pass --profile-root to geckodriver from Selenium? It isn't trivial but here's one way to do it: import java.io.File;import…
-
Creating Message Responder with InputMode "multipleResponses" via API
Could you provide example REST calls for creating a Message Responder with InputMode "multipleResponses" via API? How do we populate the multiple responses? I don't see a separate call like you have for the sequenceResponses. Usually I watch the traffic from the CTP to pick up on API calls, however I don't see that…
-
How to parameterize the URL path and use it in proxy connection
Hi, Does anyone have idea on how to parameterize the URL path and reuse it in JSON responder and proxy connection? E.g my URL path is /path/parasoft/1234/api and I am making a GET call now 1234 value will be different each time I make a GET call. I have to parameterize it and use it as a condition in my responder and also…
-
AUTOSAR A2-7-3 - False positive on implementation
I'm using Parasoft C++Test Professional 2023.1 and I'm getting false positives on AUTOSAR Rule A2-7-3 which states that "Every declaration needs to provide a proper documentation." The false positives happen when a function is declared in a .hpp file, while being defined/implemented in the corresponding .cpp file, but it…
-
How to Handle CAPTCHA in Selenium Automation?
I understand that CAPTCHAs are meant to prevent automation, but for testing purposes, I need to bypass or handle CAPTCHA in my Selenium script. Is there any way to automate this or perhaps use some manual intervention without disrupting the automation flow?
-
Recording APIs from ANY Automation Framework with SOAtest Smart API Test Generator
Today marks the 3 year anniversary where Parasoft released the Smart API Test Generator add-on for SOAtest, which was SOAtest 9.10.5. So in honor of this anniversary, I decided to publish a write-up on how users can record JSON/HTTP-based API traffic from any automation framework. As you may know, SOAtest Smart API Test…
-
Unable to Add Outputs to Responders
Suddenly I am unable to add outputs to my responders using the Parasoft client. In the past I would right-click on a responder and select Add Output and then a dialog would appear to let me choose the type of item to add. Now when I click Add Output nothing happens. I've restarted the client and even rebooted my laptop.…
-
How to extract values from request xml and write those values in the output file
Hi, I am looking to extract the values from request xml and write the extracted values to the output file. Could you please help to achieve this requirement. For ex: created Meter1 2.0 2023-08-21T06:27:04Z It should extract the values from xml like as below write in the output file created, Meter1, 2.0, 2023-08-21T06:27:04Z
-
Cannot connect to license server error
Hello, I have the setup, where I'm connected to the RedHat server from my Windows machine through the Visual Code. I am using the OIDC authentication to connect to the parasoft license server. When I run the parasoft docker image from the RedHat server, the license is obtained from my employers server, but when I run the…
-
Using Basic Auth with Parasoft Virtualize
Hi, I wat to use basic auth with Parasoft virtual service. I am able to add the authentication to the virtual asset, but not able to correlate the incoming request's basic auth to that I have provided in the asset. Any suggestions or a reference document please?
-
Running Selenium Invalid Status code=403 Fix - Eclipse
If running Seleniums Tests in Selenic 2022.2 on Eclipse and encounter the following message: Chrome version installed: 114.0.5735.99 Chrome driver installed: ChromeDriver 114.0.5735.90 This issue occurs with newer versions of Chrome as discussed here: https://github.com/SeleniumHQ/selenium/issues/11750 Selenium 4.8.3 has a…
-
Getting undeclared error for the variable which is already declared.
I have this piece of code to compile with insure++ static int ABC ( unsigned char *buffer, int buffer_size, int num, ) { memset(buffer, '\0', buffer_size); void* xyz = # memcpy(buffer, xyz, "ABCD"); '''' but after cmpilation, i get this error: " error: 'xyz' undeclared (first use in this function)" but it is already…
-
Create Responder Attachment using Scripting or Java
Is it possible to add a file attachment to a message responder using scripting or Java? I didn't see support for attachments in the API (unless I overlooked it) so I was hoping it's possible to do it with a different approach. Thanks JT
-
How to solve the error: "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…
-
Unable to run jtest cli on cmd
Hi all, I have an issue with trying to get jtest cli to run on cmd I am able to get this version to be running on eclipse IDE This is the following commands that i have attempted to run on cmd: jtestcli.exe -localsettings -resource "ProjectA\src" -config "buildin://Recommended Rules" -data It will show that the testing…
-
Passing in ID
Hi William, awhile back you mentioned that it is possible to override the UUID version of certain IDs by passing in a value. Can this be done for message proxies? Can you refresh my memory? Thanks, JT
-
Unable to execute tests
Hi, I could successfully create automated Tests for my dummy C Project using Parasoft. But on executing these tests, I get message in console: Collecting tests to be executed... Skipping test suite(s) - invalid CPPTEST_TEST_SUITE_INCLUDED_TO value detected: /Addition/tests/autogenerated/TestSuite_add_c.c ...done. Preparing…
-
Software Testing Institutions
Hi guys, looking for quality education for manual testing (QA), but I don't want to learn in groups of more than 20 to 30 people. Is there some online school where there are not more than 15-20 people in a group and a lot of practice? Can you share your experience with me pls? Thanks!!
-
extensionTool - Groovy example to modify the response payload
Can you point me to a couple examples of how to use Groovy code in extensionTools to modify things like response headers, payloads, etc.
-
/v6/tools/penTestTools
Can you point me to doc on /v6/tools/penTestTools and the tool it creates? Thanks, JT
-
How can we validate multiple messages on a kafka topic?
Hi Community, We are using the Parasoft soatest to read messages from kafka topics and validate them against an expected message. This works fine for cases when we expect 1 message. Also if we expect for example 3 messages, it works fine. We encounter challenges when we have multiple messages in another sequence than we…
-
change license retrieving timeout and retries
Hi We run parasoft cppclitest in our CI flows as "best effort". In some cases, when there is no available license, cpptestcli sleeps for 600 seconds and then tries again. This will try several times in a loop until end of retries or available license found. In some cases this adds lots of time to our CI flow and users…
-
Scripted Responder Correlation via API
I have a user who needs responder correlation on a specific HTTP request header. He wants to have the responder match if the header is not present, or is present but has no value. In his words, null or "". The responder is being generated through the API. This type of thing is fairly simple using custom, scripted…
-
Can you provide an example of a writable datasource in Virtualize?
Can you provide an example of a writable datasource in Virtualize? Thanks, JT
-
Report generation with a list of suppressions
I want to include a list of suppressions in the report. When i am running c/c++ from eclipse and enable the 'Supressions Details' option the report contains a list of suppressions. But when i run the analysis from cli with -property report.suppressed_msgs=true the report does not contains the list of suppressions.
-
CMake project in Eclipse C/C++ Test checks 0 files
We have a CMake buildable project (C source) which we have just imported into Eclipse. The project builds successfully in Eclipse. When trying to run the MISRA 2012 checks via the Eclipse IDE C/C++Test plugin, it reports many files and source lines are available under 'Scope' but under 'Static' it says Files Checked: C/C++…
-
New Virtualize Java ExtensionTool - overwrite jar?
I am creating Java extension tools using the API. As part of this process I am uploading jar file to the system_jars folder. Works sometimes, but if there has been a recent request to a tool that uses that jar I find I can not overwrite or delete the jar. It is considered in-use by another process. I know there is a call…
-
How do I get the name of the datasource in Groovy?
What's the best way to get the name of the datasource associated with the responder in a Groovy script. Is there a reference to it in the context or do I need to put it there? Thanks, JT