-
Multiple Response
Hi Team, I have a requirement where i need to set multiple condition for a single response. How do I write multiple condition? I do not have access to Data Source Correlation. In the attached image, it has 2 login id but needs to send the same response, When I add the condition 1 after another, it does not work. Could u…
-
Virtualize Enable SSL Proxy
I developed an Android app that connects to a node.js server in the cloud, I've generated a self signed certificate and I have already tested the SSL connection between the app and the server, it works perfectly. Now I'd like to deploy a Virtualize proxy between them, I generated a keystore.p12 from my private key and…
-
Can not see or create Test Suite or .tst file in Test Case Explorer
My Parasoft version is below, installed on Window10 machine After I create a project, I am unable to find Add New-->Test(.tst) File option by right clicking the project. I can create .tst through File->New->Test(.tst) File though. but after create an empty .tst file ( For example, test2.tst) , I can only see .tst in the…
-
Get Current time in Milliseconds
I am trying to generate a timestamp of the current time but in milliseconds. Is there a scripting option to do this, perhaps Extension tool, or is it possible to generate it via the Data Generator Tool?
-
Scripting Issue: Trying to get a particular value in a column
I have a script where I generate a key based on the request. This key is a value listed in the first column in a table, and the script should return the value of the corresponding value next to the key value. Ex: In column 1 my key is A and I need to return the value next to it BC. So far my script results in an error when…
-
Documentation on "em" Schema
I'm interested in doing some custom reporting on traffic going through our message proxies. I have noticed items of interest in the em.em_event_message and other tables. Is there any available documentation on report queries for this schema?
-
How can I reuse or apply some test to all my scenarios
Hi, I have 3 tests to post on Rally the results but I want to avoid copying the same tests over and over to all my scenarios or test suites. The only thing that changes in those tests on each test suit is the TC ID of Rally
-
Jars for Groovy scripting
Hi, We are trying to customize a responder where we are using groovy scripting for which we need some jars to be added to parasoft virtualize. Could you please help us where we need to add jars for that. We are getting error org/apache/ivy/core/settings/IvySettings
-
Create DB of all virtual assets created
I would like to create a database of all virtual assets created and would like to automate it. Please suggest best way to do it.
-
Where can i see the result of Groovy script in Parasoft SoaTest after evaluation
Hi, I am new to parasoft tool and was trying out some scripting. i want to know where can i see the result of groovy script in parasoft soa tool
-
Set up service to use virtual asset only if test servers are down
How can I set up my service to use test servers first, and hit virtual asset only if the test servers are down
-
Parasoft C++test and WindRiver integration
Hi, I have a one lisence for C++test. I use DS5 Eclipse IDE and Workbench 4 IDE on the same machine. I integrated with DS5 Eclipse with C++test via C++test professional eclipse plugin exe. And I want to rerun this exe it says that remove all or repair it means that this eclipse plugin just integrates with only one eclipse…
-
How to get the request url/parameter values in Response tab
Is there a way to get the request url/parameter values in the Response tab and perform validations using Groovy script. I am able to get the values and perform validations on the Responder correlation Custom tab.
-
JSON output response based on the dynamic date ranges in the request
Requirement: Each calendar day will have a different json response, for 90 days. Based on the to and from dates given in the request I have to pick the response, combine and send the result. * How to and where to save all the responses. * For different date ranges how to combine the responses. * Some dates are having no…
-
jtestTimeout for class error
Hi All, i am a bit further now with setting up the ANT CLI interface. But during the run i am receiving:_ groovy.lang.MissingPropertyException: No such property: jtestTimeout for class: com.parasoft.xtest.ant.SoaTestTask_ I Can't find where this failure is caused by, am i missing a file at the system? What do i need to do…
-
Environment variable in Database Data Source SQL query
Hi, I would like to know if an environment variable can actually be used in Database Data Source SQL query.I tried the below options & they did not seem to work. Any help would really be appreciated. I have a bunch of tests written already using the database data source already & I I would like to know if it is possible to…
-
Sftp connect through soa tool
I am not able to connect sftp through soa tool..I am getting error auth fail.currently i am using ftp client to connect sftp..is there any other way to connect sftp...
-
.parasoft file corrupt
Hi. is it possible to regenerate a .parasoft file? Our got corrupted by some SVN commits that are conflicted.
-
Dynamically create proxies, record traffic, and create assets using the REST API
I was recently at a customer engagement and they had the following requirement: We would like to create proxies on the fly, record traffic, create the asset, then delete the proxy. Parasoft has a powerful REST API that can easily facilitate this. This script does the following 1. Creates a new Proxy in record mode 2. Grabs…
-
Is there way to report SLOCs for functions?
I was looking for a rule similar to "Report Cyclomatic Complexity [METRICS-29-5]", but for LOCs. Is there such a rule or some other way to report LOCs for the functions?
-
"Warning: A test is currently running" pops up even when no test is running
Hello, When I'm executing a tst, sometimes my SOAtest runs out of heap space. This causes the test execution to hang, so what I normally do is click on the red stop icon to stop the execution. Then I click on the garbage can icon to release some memory, and try to execute the same tst (see screenshot below). But when I try…
-
Parasoft JTest integration with Gradle
Hi All, Need a help for integrating jtest with gradle. We couldn't find init.gradle or jtest.gradle in the installation folder of Gradle which was mentioned in the Parasoft manual. https://docs.parasoft.com/display/JTEST1040/Configuring+the+Jtest+Plugin+for+Gradle. Please share us the init.gradle file or the plugin which…
-
Extract Value from Database and return in the HTTP Response Header
What steps would I use to extract a value from a database and then return that value in the HTTP response header? In my example, I would get a value for "group": select group from groups; Then I want to return an HTTP header: X-Group: Thanks, JT
-
Is there a way to report names of global/static variables?
Is there a way to report names of namespace scope and translation unit static variables?
-
Parasoft support for [[fallthrough]]
Does Parasoft Static Analysis support standard [[fallthrough]] attribute or gcc attribute((fallthrough))? If not, are there plans to support them?
-
Groovy script not working in Response Tab
I am trying to validate one of the field from request. Using Groovy script in the response tab for the validation of the request. import com.parasoft.api.CorrelationScriptingHookConstants. def correlateOperation( context) { requestUrl = context.get(CorrelationScriptingHookConstants.REQUEST.URL) return requestUrl; } With…
-
Share datasource across referenced test cases
While I can run individual tsts on their own, when I link them as referenced test cases, the datasource from the original tst is used. Is it possible to set the datasource for a referenced tst to that of the current tst, so only one update is needed when changing row references similar to how environments work with…
-
Include tools results into the responder correlation
I have a responder with a DB tool attached to the incoming request, the query used on it is looking for a record in DB using some values extracted from the incoming request by using an XML Data Bank. At response side I need to select my response (I'm using Multiple Responses) based on the incoming request (I'm filtering…
-
How to rename the data file after each use in Loadtest?
Scenario I want to run a 8 hour test run with millions of records (data is xml file sample xyz10976_10204.TF). if the test need to be stopped after 2 hours and need to re-run the test by using the unsued test data . If the tool use the existing data - we will end up having duplicates. In order to eliminate the duplicate, i…
-
How to validate the date given in the request
Below is request URL http://localhost:9080/accountsdetails?startTime=2019-09-27 I want to validate startTime whether it is older than 7 days from the current date or not. If it is older I want to return error message or with some responder.
-
Using Extension Tool to capture the request code
I have an instance where I need to capture the incoming request, and find part of the code marked by an unique identifier and return it as my request for my responders. How can I code this effectively? Here is the code I have so far that I got from another application, but not sure if it works in Virtualize: function…
-
Help with XPath Substring
I am trying to get a part of a string up to the point where there is a blank space in the string. However, Virtualize is saying that it does not recognize what the .indexOf() function is. Can someone guide me as to what could be the issue and how to get the sub-string properly in Virtualize? The XPath code is am trying to…
-
SOAtest and Virtualize 9.10.8 are now available
The latest releases of Parasoft SOAtest, Virtualize, and CTP are out! There's a bunch of new features including: Test impact analysis for API testing * You can now leverage test impact analysis (TIA) functionality for API tests in SOAtest. Designed for use in your automated test execution environment, TIA analyzes the…
-
SOAtest and Virtualize 9.10.8 are now available
The latest releases of Parasoft SOAtest, Virtualize, and CTP are out! There's a bunch of new features including: Test impact analysis for API testing * You can now leverage test impact analysis (TIA) functionality for API tests in SOAtest. Designed for use in your automated test execution environment, TIA analyzes the…
-
Is there support for sending .xlsm files using the REST client?
Hello, I'm trying to test against a service that expects a file in the request. The file's extension is .xlsm. The REST client didn't seem to be able to send a file with that extension. I was able to send other files (e.g. .txt, .xls, .xlsx) without a problem. So I added the following content-type in…
-
Kubernetes / Kubectl support
For the proxy setups in parasoft, is there a integration with kubernetes at all? In a dev environment, we use a lot of localhost connections through Kubernetes/Bastion/Olympus. Is it possible to setup these local host connection port forwards, in a PVA and use them in CTP jobs as well? Sample Kubernetes call to port…
-
Moved: Kubernetes / Kubectl support
This discussion has been moved.
-
Coding Concrete/Collection Type Schemas for JSON Payloads
When I import my YAML, I can see the Concrete/Collection Schema Types, but I am unable to create these manually, at least that I have seen. Is this even possible? Is this ability even supported by Parasoft as I could find no documentation on this feature. By ability, I am referring to the ability to not only setup, but to…
-
Using {variables} in XPath Responder Correlation
Is it possible to use Responder Suite {variables] in the XPath Request Body correlation? e.g. /:Envelope/:Body/:someRequest/:someNode/*:color/text()="{color}"
-
Scripting with a value in a XML Databank chained to Request
I am trying to access a value stored in a XML data bank that is chained to the incoming request. In my extension tool, I chained a XML data bank to see if I can successfully pass the value to the tool. my code: function f(input, context){ var id = context.getValue("Generated Data Source","traceId"); return id; } My issue…
-
Does SOAtest & Virtualize support Java 9 or higher?
Hello, I was looking at the documentation for the tools, and I saw that only Java 8 is supported. However, when I was looking over the documentation for deploying SOAtest and/or Virtualize servers using the WAR file, it says that Java 8 or higher is supported. I just wanted to confirm if this is an inconsistency in the…
-
how to validate a reference argument on CPPTEST_ON_CALL?
I'm using gcc compiler MinGW version 6.3.0 with Parasoft 10.4 under eclipse. I have a C++ function which expects an argument passed as reference, I want to validate on my test that I'm not passing that argument as null. I tried several ways to use the .Equal() on the stub, but I always get errors. My simplified code is…
-
Debugging Scripts in Jython
From an existing customer, but I figure I would post here: Can you recommend how we debug Jython scripts, which we’re planning to use within SOAVRT as “shared” scripts we can distribute to teams? Should we need use Eclipse and PyDev?
-
Parasoft unit test C/C++ test: How to use constant as variable in Unit test
Hello, vehicle software has many special constants which could be changed by test/calibration engineers during tests with calibration tools. While designing unit test cases, I would like to change the value of these test cases across test cases. But since these are defined as constants, one the software is compiled, I…
-
Test Flow Logic based on previous step or data source value rather than test suite variable
Is it possible to base test flow logic (variable condition) based on a datasource row of the current runs value or a databank value pulled from a previous test step?
-
Is it possible to condition headers in a request?
I would like to be able to include a header if a field is set to a certain value. I cannot include the header with an empty value, so the inclusion has to be all or nothing. Possibly two different test steps, one which includes the header and one which does not, but is that the easiest/best solution?
-
How to get the timestamp from the xml data bank using jython script ?
Scenario 1: login request - response of login request adds to the xml databank I need to get the timestamp and session id from the xml databank and append the values while running the txn request (Scenario 2). Can you please provide me the input or sample script to get these info and update it before executing the next…
-
Is there away to verify in a request header that weather http or https was sent
I am looking to create some logs based on the actual traffic, and was wondering if there was a way to determine if a request was sent using http or https, within a script. I know I can pull the initial url, but I was looking for more of a header option, internal value like input.get("Request HTTP Headers"), or such.
-
Saving Unit Test in VS 2017 using "Test Case using Editor"
Hello All, Am I missing something -- but in Visual Studio 2017 - when I attempt to create a new unit test using "Test Case using Editor" i do not see any dialog on save. I figured out a work around - by "x"ing out the tab I am prompted to save - -but that does not seem very graceful. Here is a screen shot (also…
-
Regular Expression for sending conditional response..
Hi Team, Below is the incoming request, I need to identify the postcode number and send the valid response. lt;PostCode>2009</PostCode> <Country>AU</Country> <AddressSince>2017-09-01</AddressSince> </Address> </AddressList> <ContactDetail> <TelephoneNumber></TelephoneNumber> <MobileNumber>0413278999</MobileNumber>…