-
Passing Multiple Documents Through a Java Application
Hello everyone. I've been trying to find an answer on this, but haven't had much luck. So for my project, I have a Java Application (JAR) which allows me to compare two SOAP responses from a data source, a baseline (external regression), and new responses; I used the Write File option to write the new responses, and…
-
Xpath - Extract element based on other element in the JSON response
I have a JSON response with following structure which is dynamic. I want to extract the account balance to a data bank of specific person eg:John "Details" : [ { "AccountBalance" : "6793", "Person" : "John" }, { "AccountBalance" : "3646", "Person" : "Peter"
-
Comparing Json Responses
Consider I have 3 products with some requirments like colour and price . Initially they are in order P1 : {c1:p1} , P2 : {c2:p2} and P3 : {c3:p3} (Captured response). But from the server they are coming in order P2 , P1 and P3. Is there any way to compare these two responses in diff tool by ignoring order change ?
-
Need a link to install SoaTest 9.10.2
Need a link to install SoaTest 9.10.2
-
Multiple Datasource
I have 2 datasource table. One of the column has a key that matches the other datasource table. Is it possible to search for the key on the second datasource and pull the data from that specific row.
-
FTP client
Does anyone has any idea , on what to provide in the host for the FTP client. I am trying to connect to some server (kind of a storage location) having some files and I want to validate the files there .
-
SOAtest assert on partial date/timestamp
Hi, I like to assert on a DB value containing a time stamp e.g. 2019-06-13 09:04:23.338024, by only considering the date part 2019-06-13 and neglecting the time. Can this be accomplished with a build in assertion of SOAtest or should this be implemented with a custom assertion? Thanks in advance . Regards , Daniel
-
How to set "timeout after (milliseconds)" with environment variable?
Hi, I have a need to set different timeouts for different tests. For instance, when doing a GET, I would like to set it to have a 3 second timeout, whereas for DELETE I would like maybe a 5 second timeout. I tried using environmental variables but it did not work, the timeout textbox only accepts numeric inputs. I would…
-
is it possible to execute same .project simultaneously, one with SOATest UI and other through CLI ?
I want execute two instances of same .project (Same set of .test files) simultaneously in a way that one should run through SOATest UI and other through Command Line Interface provided that .project should be in one workspace. Please let me know if there is any way available. Thanks in advance!
-
how to upload image using parasoft
Hi Team, I want to upload logo using paraoft ,please help me how to do it.
-
ScriptingContext.setValue syntax error in Jythlon
In the script below, the last line using "ScriptingContext.setValue" is returning an error in Details stating that: " File "", line 7, in setTestFlowLogicVar TypeError: setValue(): expected 3 args; got 2" The api doc state the syntax is: "boolean setValue(String variableName, String value)" Where is this third arg coming…
-
Iterating through Table data source
Hi, I want to iterate through Table data source and select particular rows based on the input. Im using SOATEST. do we have built in to iterate table data source? if not how can we call the table data source in Java class and iterate through the rows in the table(excel) data source. this is the scenario. i have scenarios ,…
-
jython script to iterate rows in paraspftSoa Test
Hi, please provide jython script to iterate rows.
-
Extract name of the data source with ScriptingContext
Hi, Im using the ScriptingContext in Parasoft SOATEST to build my request. I wanted to know how to extract the datasource **name ** in my script. The datasource type is an Excel file and Im using Java and need the name /path of the datasource. Appreciate the help. Thanks.
-
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…
-
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 =…
-
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…
-
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?
-
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…
-
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…
-
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…
-
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
-
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…
-
I want send empty value from xls sheet without excluding element
I am using parameterization, how to send empty value with out using excluding dob.Eg: dob : “ “
-
How use the variables mentioned in the .env file using environmentConfig ?
I want to use different environment file for each environment. I have exported the file(smoke.env) and placed in 3 different folders(DEV,SIT,PAT). The values of each environment variables vary as per the environment. I want to execute the script from .cli mode. Wen I tried to use -environmentConfig "Path of .env file" from…
-
Common/Global Tool and script section for SOATest
In expanding test cases, I have found that I use some tools repeatedly throughout various projects/test in SOATest. While there are global datasources, I have not come across a way to implement global tools or scripts. Some examples of global possible scripts I use today are JWT/JWE extraction and validation, curl creation…