-
Conditional Assertion not working with Has content
Trying to use condition assertion, where If (tag has content) then (assert this value). But for some reason, Has content doesn't work. The test cases passes even though the assertion value is wrong. Has content as a separate condition works fine. But only if I put it has a if condition, there seems to be some problem. Not…
-
Socket Closed Error Message
Hi, I am making a GET call from SOATest, and my URL is of the format walk.appgw1.westin1.dev.azure.xy.com/sv/details/v1/name?ID=123456 I don't see any traffic in the viewer and in the "quality tasks" tab I get "Socket Closed" I find no issues when I try this from POSTMAN / SOAP UI / Browser so its presumingly a SOATest…
-
SAP Hana
Has anyone connected or integrated soatest to sap Hana either by JDBC or Hana xs odata?
-
SOATEST returning error when trying to update the Xpath with string functions
I was asserting on the below response against my database value which is supposed to be Response from the service for scoreDate: 2017-03-16T12:45:25-04:00 Database value for scoreDate: 2017-03-16 12:45:25 (Expected value) I am passing the List name as a parameter from my Datasource excel sheet('ExpectedIPList' column). So…
-
SOATEST - How to assert on blank values
I am using SOATest (9.9) and in my JSON response I am asserting on an element (status) which can have a value or null value. I am trying to assert this against my datasource column 'status'. I added the below assertions in this case and did the below: 1) Added a Value Assertion for the element 'status' and parameterized it…
-
how to provide test data based on Environment into API Call?
I have rest call which will take country as input parameter. At the same time i have dev and test environments. When dev environment active , my country should take USA as value ,in case test environment is active then country should take Canada as input in parasoft SOA test. Can you help me on this
-
DB Tool - ORA-12519 error
I'm trying to connect to Oracle DB using DB Tool, when I run the test it gives me the below error. Listener refused the connection with the following error: ORA-12519, TNS:no appropriate service handler found 66000 What could be the reason ? I did try with some other connection string for same Oracle DB and it worked fine.…
-
Running a specified action/test after a test case
I would like to know if there is a way to do an action after a test case is done. Here's my scenario: I would like to create a lot of tests for HTTP POST, which updates records. After a test case is done, I would like to revert back the values of my record using another API call, and use it for another test, or use it for…
-
External tool call .net code
Is the external tool able to call a .net dll file directly? Would it work if the dll is compile as an executable? If so what would be the value of the flag? Would I be able to pass in parameters?
-
SOAtest: Call Excel application from Extension Tool
Hi, In order to recalculate the formulas in our Excel datasource, we need MS Excel to open en save the workbook before running the test. This can be accomplished by calling an external bat script, but this not preferred, from maintenance perspective. With jython/java I need the 'os' class in order to use e,g,…
-
SOAtest using dynamic Excel Datasources
Hi, I use _dynamic _Excel sheet (XSLX) as a datasource for the DBtool to make sql inserts. The Excel =TODAY -formula is used to put today's date in a field. This works well, also with highly concatenatied queries. OK. However on the long run it seems that SOAtest is treating such a datasource as static, because when I…
-
SOAtest: Extension Tool parameterize Datasource File Path
Hi, I have got simple jython script, written in Extension tool to refresh the Excel(xls) datasource, just by opening it and saving it to disk again: from com.parasoft.api import * from org.apache.poi.hssf.usermodel import * from java.io import * DATASOURCENAME = "Vul_Tabel_DS"…
-
How to pass String ArrayList object to Service in SOATest
Hi All, I have a string Arraylist where i'm iterating cells from excel and saving it in list and passing the list to context like below(doing this using extenson tool object). When i access the list in Service the entire string response is going in the request. Actually, the arraylist contains list of String. Which has to…
-
How to pass iterated excel columns (String values) into Service request
Hello, I have iterated excel columns (String values) in an object. it has around 8 string values. How to pass it to Service request. I have tried passing as parameterized value, but the problem is, it is taking the last added value from the object and it is passed as input. Kindly suggest solutions. for (String scnr :…
-
Execute test only when the data source row value matches
I have a test with data source having multiple rows. In one of the columns I have YES & NO values where I need to execute the test for that particular row only when the row value matches with YES and skip the row where the value is NO Is there a way that I can achieve this ?
-
Json schema validation
Do you have any feature to validate the json schema?
-
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"
-
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…
-
Using Date Range to retrieve data from excel
Can some help me with the below scenario. I have a responder which sends list of rows having the same account number which was sent in the request. However, I need to send the rows based on the start date and end date range. currently I have setup only account number in data source co-relation to match the account number.…
-
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 ,…
-
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.
-
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…
-
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…
-
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…
-
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
-
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…
-
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…
-
SOAtest Create CSV file from Excel datasource
Hi, I try to create a CSV file from an Excel datasource, containing the contents. I have used a CSV Client and as output a Write File hooked to the Request Payload but cannot get it to work. I have tried fiddling around with the different input modes, but up till now no satisfactory outcome, especially when having multiple…
-
DB Tool Returns a Value of 0
I have a situation where I am comparing a Source DB Table (SQL Server) to another DB exposed thru a REST API. I get the data from souce and pass in query to the API to get the result and then do a diff on message. That part is working fine, however if the source column is of Datatype Integer and is Blank, SOATest returns a…
-
Getting XSLT from Writable DS or Variable
I am storing the actual XSLT code in a Writable DS. I need access to it but it seems like the XSLT tool wants a "Relative Path" or direct path to the file. Is there anyway to get just the XSLT Syntax from the Writable DS?. When I set the variable in the XSL file box. It outputs the below The XSL file…
-
Is it possible to reference data source columns with a prefix value?
Hello, I was wondering if there's a way to reference a data source column using a prefix value similar to referencing environment variables. I have two data sources with each using their own Excel file. I see request clients able to specify which data source to use. If I select one data source, is it possible to still use…
-
Declaring variable at suite level
How to declare a variable at suite variable and assign it from Java class?
-
Running Tests simultaneously on same workspace (SOATest License Server)
I know this is not possible on the desktop versions on soatest, but my question is directed on the soatest server side version. can I run the same .tst (same workspace) multiple times at the same time? Of course the test cases are different but the shell tests are the same. or run a different .tst in same workspace…
-
Cant write values to Test Suite Variable
I am unable to write a value generated from the data generator tool to a variable stored on the test suite level. What is the way of writing values to these variables? The documentation doesnt really specify how to do this. Additionally I am unsuccessful of generating values from a writable data source.
-
SOAtest iteration of tests in reference tst
Hi guys, I am busy constructing a new framework, consisting of a parent(driver) tst and multiple reference tst blocks. Both parent and reference (child) tst's have dedicated (excel) datasources. E.g. the parent DS holds the testcases and some 'switches' to conditionally use the child tst's, in which I have a DB query and…
-
How to do decode and encode base 64 operation in parasoft SOA test using value from Json data bank
We want to implement below steps in SOA test: 1. get the raw token string value from Json data bank 2. decode the token value to base 64 3. extract a part of decoded token 4. encode the extracted part to base 64 and get the value in json data bank Can someone share detailed step by step document of this solution…
-
SOAtest - How to customize email body for auto generated reports ?
When i enabled "report.mail.attachments=true" I am receiving an email with the custom report which i generated thru XSL. However, i could see that in the by default email body was set to "local path" I want email body to change from default path to proper email body with some customization. Any help on this on how to…
-
Updating Reference Test Suites
I have a client who is making changes to the master / original tst and the changes are not being reflected to the referenced automatically. Rather the changes only show after they restart the tool. They have followed the advice in…
-
How can I Run a Java code after entire test execution completion
I am generating a html file from excel sheet after all my tests are run ( kind of customised test result report) .i an trying to run the Java class using extension tool. But the test is growing error in both the cases. 1. Tried creating a new test with only extension tool but it's not running 2. Created a tear down step…
-
Groovy REST Request - Scripted Input
When creating a REST request, I have three options for the data I send 1) Fixed, 2) Parameterized, and 3) Script I am attempting to use the script option to create a groovy script that will generate a random number each time I run a test. This is the script I have so far and I'm seeing the error "Argument count should be 0…
-
Triggering SOAtest TestSuite Runs Using Java Code Internally through ExtensionTool
Requirement:- 1) I have a set of TestSuites In a Project. 2) I want to use Extension Tool that'll call Java code or another supported prmm. language. 3)Code will run the desired TestSuite on basis on some conditions that I'll set. Any Help appreciated. :smile:
-
Understanding Support for Custom Report Formats And Generate Customized report
I know how to create XSL. But I need help in understanding on how to do we link the available parameters to XSL. Also is there any way to send report automatically after the test / suite run ? It would be helpful if some one can provide with some example of XSL. My report would need All Test Details Suite wise or…
-
Keeping the auto generated XML Document for Report Customization
After I generate the report i could see that there are few files including xml document where soatest tool uses the xml to parse and generate html document for reporting. However, the same has been deleted once the report has been generated. Is there any way that i can keep that file for my customized report ?