-
Memory test cases using Parasot C++test
I am looking for creating unit test cases for memory testing especially checkered box or galpat test. I did research in parasoft documentation however there is no such example. Did anyone got to create any tests using parasoft?
-
Json Assertor Throwing an error in Bamboo execution
I have some value assertions in json assertor tool and the test works on my local, but fails in Bamboo with below error. Can someone please help me understand what is missing? An error occurred while processing an assertion: net.sf.saxon.trans.XPathException: Cannot convert XPath value to Java object: required class is…
-
Adding more header files to be analysed by extension (.gen).
We are working with C/C++test Standard. A prospect was able to analyse header files (.h) by providing -module switch. (Feedback - not very intuitive to find this option in docs AND understand WHY "-module" would control the inclusions of headers into the analysis - but that is a separate discussion) . So - they have some…
-
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…
-
Execute Selenium tests with Selenic and API tests with SOAtest at the same time
Selenium tests execute from the command line or the IDE. SOAtest tests also execute from the command line or from SOAtest. So you could execute them both from the commandline together. There are many ways to do this, like from Jenkins. Here is an example script: AGENT_DIR=<PATH TO SELENIC JARS>WEBDRIVER_DIR=<PATH TO…
-
Code composer studio unit tests fail to re-run
Hello, I have run into a problem using the embedded unit testing with c++ test. The sequence of events is; * Write some unit tests * Run TI CCS v4+ tests [C/C++ test console output] Target running... Interrupt to abort . . . * ~50 seconds after starting [C/C++ test console output] SUCCESS: Halted at correct location * All…
-
Traversing through json elements using JsonOutput
Requirement: I need to read a json from a file, traverse through the JSON elements and modify multiple values. I am using JsonSlurper to parse the text and traverse through the elements and able to modify the values. My request json contains multiple json arrays and json objects and elements. Issue: I have 2 unique…
-
Writing console output to a file
I am using the command virtualizecli -startServer >virtualizelogs.txt to write the logs to a file. But after executing the call to the server/virtual asset, I don't see that file is getting updated with the Application.showMessage statements.
-
How to import my tests in another tests
I am trying to create a common function library, created a test .tst file added an extension tool and written some methods in it. How can use this methods in other test .tst - extension tool. Is there a way to do this. Appreciate your help.
-
Use of Aggregate Data Sources in SOAtest: MAX nr of fields combined?
Hi, Currently I am building a project in SOAtest (9.1.0.6) in which I would like to combine some internal table data sources into an aggregate DS for use in XML Assertors to validate the contents of several DB tables. I have a project with several tst's underneath. I declare the DS on project level (not as Global DS!)…
-
Error during parsing file (C++ static analysis)
Hello, this is my scenario: * Windows 7 platform * Parasoft C/C++ 9.6 Eclipse IDE * g++ inside Cygwin installation * Static analysis on C++ code (this code is compiled and executed on Linux platform) After run a CRules static analysis I got the following errors: size_t undefined, nullptr undefined, __int28 undefined and so…
-
Static analysis with preprocessor directives
I am running static analysis tool on C code and getting a MISRA2012 Rule 5.5b violation: The names of macros that exist prior to preprocessing should be distinct from the identifiers that exist after preprocessing (c99) [MISRAC2012-RULE_5_5-b]. It appears the cpptestcli is processing both the #ifdef clause and the #else…
-
Gmock integration
Have anyone tried to integrate Parasoft with GMock or other Mocking framework?
-
Is there a way to import JSONObject in Groovy
I need to convert string to json object using Groovy. But when I try to add the statement import org.json.simple.JSONObject I get the compiler error saying unable to resolve the class. Please provide some guidance.
-
Is there a log file to find the Hit Count ?
Hi Team, I need to prepare a desk, to show the Hit Count happened over the period for the given services, Currently I can find them under Monitoring tab, which shows the per day Hit Count. Is there a log file where I can get the previous Hit Count details ? Thanks Senthil. M
-
Correlation / Extract Element Regardless of Order in the Request
Is it possible to do a responder correlation based on a particular element and its value, regardless of its position in the Request body? The case I am working with is where the user sends a request with the same elements, however the order randomizes each time. For example, if I am checking for the value of "Status" which…
-
Validate IDs and throw error if invalid ID.
Hi, I have a requirement where i need to validate IDs and throw error if invalid. I have created data source and added available IDs. I have created one request and assigned data source to it. I am passing two parameters in my responder. I tried to execute but i am not successful in throwing error. ex:- Created Data Source…
-
Running SA & UT to cover conditionally compiled code
I am trying to figure out the best solution for running static analysis and unit tests on all of our C++ code. There are 3 different pieces of hardware that our code runs on. We have sections of our code that are compiled out depending on name we pass in to the compiler, IE: “-DHW1”. This is the primary way our main…
-
Export results to Junit or Nunit - possible?
After executing a test in SOATest, is it possible to export the results to a Junit or Nunit report.xml? I see that xunit is supported, but when exporting, I only get an empty xml report as attached. Is there a setting I am missing, possibly?
-
Jtest code in eclipse
Hi, I have generated test class using jtest IDE. I want to run this code in my normal eclipse editor How to do that? How to use this sonarqube?
-
Define Multiple Stub Callback Functions in a Single File?
Hello, I'm trying to use stubs with Dynamics Stubs Configuration enabled. All the stubs are created using "Create User Stub" option, and each are in Cpptest_Stub_(functionName).cpp files. The user manual stated that I should put Stub Callback functions in test suite files and define the stub logic there. However, instead…
-
Flexible selection of Active DS in DG
Hi, Currently it is sadly only possible to set an Active DS within a Data Group through using the dropdown selection or a static Environement variable. However during iteration of my test, I want to dynamically set the Active DS e.g. through a runtime variable, e.g. triggered from an overall DS. Will this be made possible…
-
Load test with token at specific interval
I have a scenario where we need to use token in the API load test and this security token is valid for only 15-20 min. We need to hit token only once in every 15- 20 min. Is there a way i can use this logic in the load test.
-
oracle.jdbc.driver.OracleDriver cannot be found by com.parasoft.xtest.libs.base_9.7.7.20180207
Hi Parasoft team, am getting below error when i try to connect to ora DB, I have included ojdbc6.jar in JDBC driver, DB tool is not surving my purpose so we have to handle this via scripting, can someone help on this please Additional Details: oracle.jdbc.driver.OracleDriver cannot be found by…
-
parasoft virtualize server - start/stop
I'm new to parasoft virtualize but I follow the mechanical steps to create the virual asset. After closing the parasoft IDE and opening again, double clicking the URL of the virutal asset does not open the full window of the GET request in the Editor view. The i noticed server was not started. I started virualize server.…
-
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…
-
Capturing loop count during loop until Fail/Succeed
I currently use a loop until succeeds loop for some calls to account for backend delays in data propagation, but I am now being asked to capture how many loops it takes (to determine total delay) until the data is propagated. Is there an internal variable that can be used to capture the current loop count, which I can add…
-
Excel datasource defined in parent suite, values are not getting through in reference suite
Hi We have several reference suites that use a data-driven approach with an Excel datasource defined in the parent test suite. I had to change one of the reference suites (add a new SQL query somewhere), but now the values of the datasource (of the parent suite) are not detected anymore (errors in the ), but only in the DB…
-
Can we throw custom http status code and message using groovy?
Hi, I am looking to see if i can use groovy code to handle custom error messages like below? There is a logic in my groovy code where it throws invalid date range if If my date is greater then 90 days. I don't have logic where it also change custom status code/message. I want to see if i can throw status code = 405 and…
-
Groovy script unable to establish Oracle DB Connection
Hi Team, When tested the Virtual Service in local host with the below Script in the Response tab ---> Input Mode: Scripted---> Language: Groovy getting below error in the when monitored the logs. Error Message: com.parasoft.api.UserMethodException: java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver Please…
-
Unable to connect to SQLServer through Jython
Hi, I am trying to connect SQLServer using extension tool (Jython). I got an error: Error during script execution. View Details for more information. com.microsoft.sqlserver.jdbc.SQLServerDriver cannot be found by com.parasoft.xtest.libs.base_9.7.7.20180207 I added: * sqljdbc42.jar in Parasoft/ Preferences/ JDBC driver and…
-
Recording Web Scenario
I am trying to record a web scenario but the only thing that is captured is the start page. As I navigate through my planned test script no pages are being recorded even though the dialog says it is recording.
-
Help with Regular Expression Criteria
I have a MQ responder I am trying to move from one tool to Virtualize. This responder has two main types of criteria, one is in the form of regular expressions, and the other is just plain text. I need help on how to create the criteria to match with the responder / how to handle these responders with these criteria. An…
-
Parasoft creation of .bdf file using bitbake.
I'm looking to setup c/c++ test to do static analysis, but my build uses bitbake to compile instead of a straight-up make command. Is there any trick to get this to create the .bdf with cpptestscan or cpptesttrace, or is there some way I can perform some level of static analysis without doing the build?
-
Custom status code is not showing and always shows 200 OK.
Hi, i have a scenario where i need to validate account ID and display error message as "Invalid account ID" if account ID is invalid. I am able to validate and display message but i am not able to display my custom status code as 400. It always shows 200 OK. Can you help me on what changes i need to make this work? Thank…
-
How can I get values from REST path and return it as a string in the response?
For example, I have somehost.com/restapi/v1/value1 and I want it to return value1. I set up REST URL Data Bank and set "Path - 0" to value1. In one of the attribute in the response, I use this Groovy script... import com.parasoft.api.*; boolean customAssertion(Object input, ScriptingContext context) { String value =…
-
Using Kafka with SSL
Parasoft SOAtest supports Kafka through the Kafka plugin available on the Parasoft Marketplace. The Kafka transport allows you to configure SSL and other security settings with global Producer and Consumer properties through scripting. You can add an extension tool to your test suite and add the following properties import…
-
Soap Client Response in Parasoft
i am trying to run a soap api in parasoft response seems to be 200 but the payload in traffic viewer is empty as below But when i run the same api in soap ui i get the complete response with all the Engagement benefits details. where am i going wrong here.
-
SOA test integration with ALM
I integrated SOA test with ALM. I am currently executing the tests from test lab. But the challenge is the runtime is very long from ALM like almost 4-5mins I am looking for a solution where I want to execute my test cases from SOA test tool and export the complete traffic to ALM
-
Show error message if date is null or greater then 7 days
Hi, I am new to parasoft and trying to understand my requirement. I have two scenarios where if date is null or greater then 7 days then it should show error message as:invalid dates. I can see my message if date is passed but not without. Can any one help me on this issue please? Below is my requirement flow:- Assets:-…
-
Dynamically change a request
Hi Team, Can we dynamically change our soap request based on datasource value. Example: We have a column in datasource having value as 3 ,so I want to add a block of elements 3 times. If my column value is 2, then I need to add the elements 2 times dynamically based on the value of the datsource. Can we change the request…
-
DTP installed in a container
Can I deploy DTP be deployed in container? I have soavirt deployed in a container in the cloud and would like to have DTP deployed as a container also.
-
Need example for /v6/tools/messageResponders with Multiple Responses
Can you post an example or two for /v6/tools/messageResponders with Multiple Responses? Thanks. JT
-
Error while doing static analysis with Parasoft C/C++test Professional 10.4.0 (Eclipse) in windows
Hello, Good Evening! This is my scenerio, I am doing static analysis for a make file based Project which uses arm-linux-androideabi-gcc compiler. While doing the static analysis I am getting the below mentioned error in the console window. Preparing options for MM_Version6.0 project... make -i CXX="cpptestscan.exe…
-
Connection timed out error
Hi, i am new to parasoft tool and have started on this few days back. i am working on a rest api, and getting an error as "Error Message: Connection timed out: connect" even though i have done the proxy changes in the preferences. Could you please assist me as in what i can do to resolve this error.
-
How can i customize status codes in parasoft
Hi, I want to display custom status code based on my response. i always gets status as 200 OK but i want to change on some conditions. ex: if passing date is greater then current date then display status = 400 and message = Bad Request. * Can i do this in parasoft? (Yes - how) or * Can i do this using groovy? (Yes - how)…
-
How can I easily get the missing data between two builds in DTP.
Hi I have missing some data between two builds. Using widget "Recent Builds" I have general overview that 2 less test inputs and 6 less coverage inputs. But could I quickly get info - which runs (sessions) are missing and from which machines ? regards Maciek
-
Can we implement validation rules using Parasoft?
Hi, I want to know if we can implement validation rules in Parasoft without writing code. ex: My response should look if my date > current date then i can throw some custom error messages in response? or do we have any Parasoft methods that can be used for this kind of work?
-
Virtualizer - asking to download JSON file instead of showing contents
Hi, Question : I have virtualize Rest API, working perfect with postman/chrome but ones try URI under IE 11, instead of showing JSON on screen asks me to OPEN or Download file. If i click on OPEN, nothing happens. Thanks,
-
Test Suite - Execution options
I would like to iterate my datasource once per test. In Test Suite - Execution options Tests are individually runnable radio button gets disabled after adding tests. Could someone please help?