-
Keil uVision Static Analysis Quick Start
In this post, I will go over how to get started with using C++test static analysis on Keil uVision projects. In this example, I will be using the C++test example MDK-ARM Sensor project. This can be found within ${CPPTEST_HOME}/Examples/Embedded/MDK-ARM/Sensor. In this post I will use the following: C++test 10.4.2…
-
How to Save Test Suite
We're trying to save a Linux test suite (using git) so we can share it among developers. The existing suite contains several hidden files (.parasoft, .cproject, .project, .metadata) that contain absolute paths to the original suite locations, which breaks badly when we try to reuse the project elsewhere. How can we save…
-
Dtp Page load speed
Hi, I run static analysis then I published it to dtp. When I open analysis result the dtp page load very slowly. Related image wa s added to this question. Could you suggest anything for speeding load page? We increase ram memory on the machine, we did necessary thinks for speeding but nothing changed.
-
Formatting issue with trailing zeros
Fellow SOATesters: I have a problem with formatting price extracted to a Databank stored in a script variable and then using it after some arithmetic - for example (price multiplied by quantity to arrive at total price for the cart items, add tax and finally arrive at total amount ). Sample prices are 90.00, 102.41, 50.88…
-
How to have client request validation for SOAP Service?
Hi Team We have virtualized a soap service, where as client is sending some extra fields. In this case original service is throwing an error which is their schema definition. where as in virtual, we cant write responder to handle all validations, if we have some options to include validations at wsdl level?? Any help would…
-
SAOTest Virtualize : Parameterizing Arrays of Varying Size
I have a requirement exactly the same which parasoft gave an example.. I tried reproducing the same but i couldn't see any response back. In the below example I could see that they have setup a response , but is there any specific request that i need to send to get that response ? I followed exactly same steps but still no…
-
Batch File or VBscript File to execute a single TST or all available TST in the workspace
I am trying to create a Vbscript/Batch file which will launch the SOAtest and execute a single TST or all the TST available in the workspace. I am trying to find my question in the forums but no help. Can anyone help me out here. Workspace Name: APITest TestScript Name: Login.tst
-
Calculate sum of several columns in an XML databank
I'm extracting and storing values (let us say List Price of several products). I can see them saved as shown in console: Scenario: GetProductPriceOfCartItems Test 1: GetProductPricing(ProductPricingRequest) - success set Test 2: ListPrice1=45.00 set Test 2: ListPrice2=65.00 set Test 2: ListPrice3=55.00 set Test 2:…
-
Parameterize the attachment <zip> with MIME and MTOM is not working for SOAtest SOAP Client
I was using the SOATest SOAP Client to send the soap message request to the backend using MIME and MTOM , which requires the zip attachment along with request, SOAtest only keeps the absolute file path in the request message body not the actual zip file and send to the backend .. which through an error File not supported .…
-
Use data conditionally in a SOAP Client Tool
Is it possible to conditionally use the value of cell (from an excel spreadsheet setup as datasource "CustomerAndProduct" say that contains 2 columns as shown below) CustomerType CustomerNumber New 0 Existing 123456 The end goal here is I want to use a SOAP client (which fetches) Customer details for "Existing" customer…
-
Response: SOAP-ENV:Server: javax.xml.transform.stream.StreamSource cannot be cast to java.io.InputSt
When I'm trying to submit a request. I'm getting the below error. The same request is working for my team. can you anyone have an idea why i'm getting this error. I tried with Parasoft SOA Test9.8 and 9.10. Both tools are getting same error. <?xml version="1.0" encoding="UTF-8"?> SOAP-ENV:Server…
-
REST Tests stopping after a certain number of tests execute
We just added our renewal license key (just FYI, not sure if this has anything to do with our issue). We have been running a large suite of tests 3 times a week and just recently (today), they seem to stop after a certain number of tests run. I know this because at the point where the tests finished, I disabled a number of…
-
Displaying NullPointerException
Hello, I am new to Java and trying to run below code however I am getting NullPointerException and I couldn't figure out how to instantiate varScriptToolContxt. Appreciate if someone cana help me. public class helloWorld { public static void main(String[] args) throws IOException{ ScriptingContext varScriptToolContxt =…
-
Test execution: error linking test executable for Test unit for selected sources. Error
What is this error, what is the resolution for it? the error "Test execution: error linking test executable for Test unit for selected sources." comes while running the unit tests.
-
How to chain/reference/reuse TST files in CTP
I was wondering if it was possible to chain/reference TST files within CTP. I have looked through the forum and documentation, but unsure if this is possible or not as I have not found anything matching my searches (Reference TST, Call TST, Reuse TST). Scenario: For something like a login request that is needed by a number…
-
Running tst file from command prompt
Hi All, * Please let me know how to run .tst file from command prompt? * i have tried running this command from cmd sotestcli.exe -config "C:\Apps\para_exe" -resource "OTT_tstFormat.tst" -report "C:\Apps\para_exe\para_exe_report" * but getting soatestcli.exe is not recognized as internal or external commands. * Also please…
-
Unable to remote execute SOATest
For CICD, my requirement is to trigger SOATest from Unix server (GoCD) using shell command to invoke SOATest which is on a windows server in same data center. I'm using below command to do above operation and getting error, pleas help me with this. ./soatestcli -server https://servername.com:9443 -auth uname:password -data…
-
Please provide licensing/pricing details of Parasoft JTest
We plan to use Parasoft JTest within our CI/CD Pipeline within Jenkins. Please provide the respective details along with the documentation/user-guide.
-
groovy script to export excel data into parasoft
please provide groovy script code to import/export data from excel file in to test suite
-
Require to change wsdl URL for multiple tst at one go.
I require to change the wsdl url of multiple tst's in one go. It it possible to do so in parasoft? If yes, then what is the procedure for the same?
-
Need a way to deploy and copy bulk stubs from parasoft virtualize to local and vice versa
We connect to a virtualize server via mobaX term and deploy our stubs. But we are able to do only one at a time. Is there any way to do bulk deployment and same to do bulk copy to workspace?
-
How to validate element value with group of elements?
I am getting rest service response in below format but i want to validate element value with my predefined data sources 1 Developer 5 Tester 7 Admin i have data source which have all roles allowed in my list ( Developer,Tester) now i want to validate all the roles from response against with my data source using parasoft…
-
How to branch to execute a different json assertion based on a status code value
I would like to branch in my test after making a rest call based on the status code. For instance. If the status code is a 200 Response Traffic -> JSON Assertor Good Return else Response Traffic -> JSON Assertor Bad Return I realize I can have two different tests with datasets of positive and negative tests but I am trying…
-
Reading XML file from local folder one by one
hi , i have bunch of XML files in local folder, i want to read each file one by one and export certain fields to excel. i am able to do for single file, but what i need is, after if finished test, it need to go and pick next file and run test for single file i am going into test request tab , selected Literal XML from…
-
SOAtest DB Tool spool to csv
Hi, I am trying to use the SOAtest DB Tool for spooling the output to a (csv) file, which can be validated afterwards in e.g. a CSV client. Is this possible, because I keep getting sql exceptions and I am confused of the correct syntax (usage of semicolons), begin/end blocks For example: spool test.csv…
-
SOA TEST Report
Where is it getting the task by author value. Can I set a generic value for the author .
-
Saving Dynamic JSON output in CSV in Columns
hi is there any way to save complete dynamic JSON output in csv in columns . right now i used write file and saved in CSV but it is saving in one row. my expectation is to save all json values in csv with 2 columns , field name and field value. i cant use data bank because json file is dynamic, one file might have 10 field…
-
How can I access a JSON Databank value in a Extension Tool using groovy.
I get the value from a response in a JSON databank. I can use that value in a next Test Rest Client call in the Headers by accessing ${varName}. I want to access that value in an Extension Tool. Is this possible? I have tried ${varName} and context.get(varName) but always getting the error avax.script.ScriptException:…
-
How to access a property variable in a Rest Client URL
I want to access a variable like &{test_env} in a url while doing a GET in a Rest Client Test. The url would look like https://mysite.${test_env}.com where test_env is a property which was created in a parent test suite using context.put("test_env", testEnv). I am including a .tst file that reads an excel spreadsheet in a…
-
SOA Test Project
I have completed my SOA Test Project named. Pays which is a folder inside the SOATEST workspace. The DATASOURCE and SCHEMA are all pointing to the Pays folder. I would like to create a version of the existing Project to Paysv1 for any new updates created. Is there a way I can point the DATASOURCE and SCHEMA to the new…
-
SOATESTCli
Are you allowed to run multiple instances of soatestcli at the same time. I tried to run this through Jenkins and it failed.
-
MongoDBQueryTool 1.1 from Marketplace
I noticed the MongoDBTool 1.1 from the marketplace only supports up to Mongo 3.6. Will there by anything in the future to support Mongodb 4.0? thx
-
Automating Copy content from UI in to Notepad/Excel/CSV file
I am trying automate scenario where we need to copy the values displayed in Browser UI and paste them in an notepad/excel/CSV file save in local and compare UI values with local file. Can someone please suggest how this scenario can be automated using SOA PARASOFT.
-
how to assert json response based on test case in excel spreadsheet.
How can I do the following. This is pseudo code. If test case from excel spreadsheet = 'test_1' then validate element_1 in json return value is equal to "true" I tried to use a json assertor that does reference (lists) my excel dataset but there is no way to reference a column from that dataset. I can only reference…
-
Source Control Problem
Daer Parasoft Team, After i scan cli, i find this error. what that;s mean ? and how to fix it. Thank You
-
Question about "translation unit" in RuleWizard
Hi. We need to use RuleWizard to creat a new rule. The thing we want to do is getting all functions in two or more translation units. Can we do that? If so, how? Thank you for reply.
-
SOATest using old data that works. I must be using machine learning:)
This is a bit long scenario but would appreciate any info. I am new to soaTest. I am using a data source .txt file to validate postgres datatypes. I wanted to test min max and max+1 of an integer type. I have one record in the dataset. I am using a rest post. I then ran my test using the data source file with 2147483647…
-
Element option in FormXML vs Literal View
Hi Team There is an option for Element in Form XML View "Use Data Source: exclude with empty string:", this helps to set to empty when there is no data available for this element in data source. Now whats the problem is changing to literal view (to make some updates save ) and coming back to Form XML view is clearing this…
-
Create a responder using WADL
I have WADL to upload but I do not see such option under service definition to create a responder. I could see WADL while creating a test but there is no such option available under service definition while creating responder. Can some one please help on how to add WADL to create a responder ?
-
DB Connectivity
I'm trying to connect Oracle DB using Data Sources. I have given valid and correct host, port, sid and other values in connection parameters. after entering the query, when i click "Show Columns" , it is giving "Can not execute query". * may i know why i am getting this error? * are the connection successful? * Is there…
-
Trailing white spaces are being removed from the request body.
Hi, I have a request body with trailing white spaces which are removed when the test is run. The response received for this request is successful. When i use the same recorded file to create virtual asset and run my tests through SOAtest, it works fine. However, when the same test is run through CTP using this virtual…
-
Extract dynamic value from Web page
Hello, I'm recording web page using browser play back tool (using SOATest). The fully loaded web page is captured in Browser contents viewer. I want to capture grey highlighted number (which is dynamic value)into my browser Data bank. I have tried extract value from the element by right click on the element and extracting…
-
Data Source Corelation for JSON request body
Failed to respond to incoming message using data source row correlation Values in incoming message did not match values in the data source "test" 123456789 I tried to correlate the ID filed from the excel data sheet with JSON request body. Below sample format. But am receiving above error while testing { "id" : 123456789 }
-
Jenkins Parasoft Integration
We purchased parasoft c++test, jtest and dtp. But they are installed a specific machine. Our lisence ia not floating. But we use jenkins with maven nar projects. We want to integrate parasoft c++test to maven and jenkins. We use your documents which are related Jenkins Parasoft integration. When we run maven nar projects…
-
Maven NAR project Parasoft C++Test Integration
We noticed that Jtest and Maven can easly integrated. However we did not find Maven C++Test plugin for native project in Maven. How can we integrate Parasoft C++Test with Maven NAR?
-
How to get the ip Address of the System
Hi , I am working on a Service where i need to provide my ipAddress in the returnURL. Can some one let me know which method to use in Jython to fetch the IP Address of my system such that when i run the test it automatically fetches the IP. Thanks
-
Reset RunId inside Dynamic Stubs
I am running Unit Testing in the following environment: Eclipse: Kepler Parasoft: 10.3.4 I am using dynamic stubs to do unit testing. I am calling the same function multiple times inside a single test case, and that function calls additional sub-functions that are stubbed. I know that I can set the Run Ids to control the…
-
Parasoft Jenkins Integration
Hi, I want to use Parasoft with Jenkins and maven. For integration is Parasoft SOAtest necessary? Because We purchased only C++Test, JTest and DTP from Parasoft company? Could you help me for this integration? Best Regards
-
SOAtest Create XML from multigroup XSD
Hi, When attempting to create an XML file using SOA test and XML Schema creation (with XSD and datasource containing the contents), I end up with one test per group of XML (header, body, subheader etc.). I can attach a Write File to each of them and append to the same XML output file. The result however is an XML file that…
-
Looking for a way to iterate each row in multiple datasources
I have 2 key tables, but could have more, and am looking to iterate through each row in each table independently but for a single request. for example, table 1 has row 1 though 4 and table 2 has trows 1 though 12. I am trying to get 48 combinations, without coding all potential combinations in one table. I tried an…