-
Is there a way to extract all the elements of a xml using condition in select xpath
I have an xml as input and I retrieve the values in xml databank But I am not able to retrieve it if for all elements at one go For Fist element I get Passed if (/testsuites/testsuite[1]/testcase[1]/failure[1]/text() ) then "Failed" else "Passed" but If kepts as if (/testsuites/testsuite[1]/testcase/failure/text() ) then…
-
Web app dropdown fields not populating
Problem populating dropdown fields in web app using SOATest 9.10.8. I have a web app that I created a number of tests in SOATest using Parasoft Recorder running in Chrome. After I imported it into SOATest I replaced the Fixed data that is input into the screen with Parameterized data from a data source table defined in…
-
Data Range Assertion
my xml file has a execution date " 26-11-2021T11:59:59" my expected output date is Trade Date + 1 so something like this 28-11-2021T11:59:59 How can i validate this logic and how can i assert this ? And this will vary for various trade events . Can some one help me please?
-
Python or Jython script to change a value in XML file and update to a new value and use as data
My scenario: I want to execute a query and get XML , store in output file, picked up in python and changing few values inside XML and again using it as data for subsequent story
-
Request timed out when hitting parasoft.com:8080/examples/servlets/Echo
Hi, I am trying to hit http://ws1.parasoft.com:8080/examples/servlets/Echo to echo my request (which has parameterized values ) and get a plain response. I am using the Mentioned end point from the past 3 months and now from last week I am getting a time out message on hitting the endpoint. Please help me with this issue.…
-
Groovy script to read test case name in parasoft
Hi, I am using groovy script for reading of parameter from the data source and creating of folder at the same location. I am able to do this much but now I want my folder name to be same as my test case name. Therefore can you please tell me what should be the groovy script **to read the **test case name from my test suite…
-
Using Data Sources
I have one excel file as a Data Sources I have two Test Steps added under 1 Scenario. * Test number 1: I must pass the ID value (Valid) on the Payload - Happy Path * The ID Value that I need to pass on the Payload is mentioned on the 1st Row of the Data Sources (excel file) under ID Column * Test number 2: I must pass the…
-
Usage of sqlplus commands within DBTool of SOAtest
Hi, Is it in anyway possible to use SQLPLUS commands from the DB Tool within SOAtest (2021.1)? When I use e.g. spool ref_stamgegevens.sql set sqlformat insert select * from scalaref.ref_stamgegevens; spool off with radio button set to Separate Statements by Magic Token I keep getting an ORA-00900: Invalid SQL-statement:…
-
How to read the writable datasource and write to excel file
Am looking for script to read the writable source and write to csv file.
-
Sort values in json databank column
How to sort the values in json databank column array. Need help
-
Send mail with attachment
I need to send from SoaTest, an email with an attachment in PDF format, and I am trying to do it through a Message Client with SMTP protocol. but the document does not appear as an attachment, but as the content of the email. How could I send an attachment in an email?
-
Error in executing Java code with method arguments Object input & ExtensionToolContext context
I have a scenario where the xml file stored in local should be passed in one of the element of the SOAP Request in string format. Steps followed to achieve this task: 1. Added SOAP Request 2. Selected correct Data Source in SOAP Request 3. Written a Java code to read file from local & pass it in request tag 4. Xml file…
-
How to access RestTest Header Values from Traffic view Objects
Hi, I am new to this forum and I really need help. I have 100 + rest test cases in my suite and I need to retrieve header value from Traffic Viewer Objects for Each Test Cases. Would you please give me a code for this?
-
Assertions Strategy using XSLT and diff tool
I am throwing this out here for the community on how they do assertions. I am not talking about validation 5 fields or so. What i do for assertions most of the time is using the diff tool. Lets say I have a service response to validate to a database. Native functionality of DB tool is to return in XML format. If the…
-
Unable to get the specific columns from collection using mongodb query tool
Unable to get the specific columns from collection using mongodb query tool. In query field to fetch specific elements i have used {"date":true,"name":false} but not getting any data for "date" column.Can anyone help me to resolve this issue
-
Writable Datasource Max length on column
I am pulling in a complex sql query that is over 800 characters long. I noticed it gets truncated when storing in a writable datasource. Is there any way to set max length on column? thx
-
Check if JSON Array is sorted by 2 elements
Using SOAtest 2020.2 Need to test if the a JSON Array is sorted. Assuming JSON array is like: [ {"id": 1, "folder": "fb\f2", "name": "n1"}, {"id": 2, "folder": "fa\f2", "name": "n2"}, {"id": 3, "folder": "fc\f2", "name": "n3"}, {"id": 4, "folder": "fb\f2", "name": "n4"} ] the sort should use only folder + \ + name So the…
-
forum SOAtest Scripting Examples forum
Looking in the Extension Tool mentions the forum, however unable to find it. What is the location?
-
Chrome infobar blocking playback, can we close it automatically?
Hi, We're using SOAtest 9.10.8 for a while now, combined with Chrome for web testing (v90 currently). Lately (probably since chrome v84+) we encounter problems during browser playback, on some systems... This is caused by the Chrome infobar, displaying something like: "Chrome is being controlled by automated test…
-
DB tool returning as blank where the SQL query in oracle returning null
Hi , We have connected to DB tool in Parasoft test to connect to oracle. When we run the query in DB visualizer connecting to oracle for one of the column its returned as null however when we run in DB tool its returning as blank. Is there any setting in DB tool tool return the column value same as returning in Oracle.…
-
RabbitMQ Messaging Client Test failing in Bamboo pipeline
Hello I've a Messaging Client test to validate RabbitMQ messaging queue and it's details, which is working perfectly working as expected locally in SOATest (v10.5.1). I've checked-in the required .jar files (producer, listener and amqpclient) at project level path in to repo and added the references in…
-
Code to save Traffic's Element View Response in file.
Hi Guys, I'm looking for a code which let me save rest service Element View response in some txt file.
-
How to remove "Read-only"
My colleagues sometimes send me Excel files, that are available only for reading. What should I do to become able to edit it?
-
same payload to run multiple time
Is there a way to run the same payload multiple times?
-
Increase integer range in SOATest
While performing JSON Schema Validation in the SOATest tool through "JSON Validator" feature, I am encountering the following error: com.fasterxml.jackson.databind.node.jsonNodefactory.numberNode(Ljava/math/BigInteger;)Lcom/fasterxml/jackson/databind/node/NumericNode; In the root cause analysis, I found that in the JSON…
-
Comparing values
I have a set of values from one rest call. I need to verify if they exist in another rest call. First call may have 5 values and second call may have 15. What is the best way to validate if the first value(s) is contained in second? Sample Data: below data returned as a JSON array. First Call Second Call 100 345 200 77 300…
-
Comparing many fields between API and UI
Data in a distributed system can be transformed and presented in a variety of ways. For example, an API might return data with different cases, leading/trailing whitespace, etc. Also, a UI may present data in an HTML table with additional characters (e.g. nbsp;). Furthermore, if you are trying to validate hundreds of such…
-
Looping through DS uses last occurrence of variable in subsequent runs
When looping through a datasource, such as per user login, and utilizing the same variable in multiple steps, the last variable assignment from the first run is used in all subsequent runs. In the attached, i am simulating the looping through a user list (datasource), which I assigned as a header for ease of tracking.…
-
Create XML File With Variable Information
I have a SOATest test suite with a test will drop an XML message on a message queue. The processing of this message is what the test suite will be testing. The issue is that I need to replace one of the elements in the XML message with a value that is generated at run time earlier in the test suite. That value is stored in…
-
XML response not visible in traffic viewer but saved as write file
Hi Team, While testing my service I can see the XML response which I saved using write file , but in Traffic viewer it comes as blank. When I manually beautify in traffic response then the response gets loaded. Because of this, in report as well the test case details are not coming up. Only no. of test cases passed and…
-
Unable to open .tst file in the explorer
I am getting the below error when i tried to open the .tst file. Soatest is unable to read the fil *** due to the following error. java.io.IOException: com.ctc.wstx.exec.WstxlOException: Unexpected end of ZLIB input stream
-
How to retrieve the newly inserted (using DB tool) data in bookstore using getItemByID operation
I inserted the data in to book store using DB Tool and I tried retrieving the data using getItemById operation which is present in bookstore wsdl. Though data is present in BOOK table i am receiving no book with the id 10 was found How do I retrieve the newly added data in BOOK table using webservice ? Do i have to…
-
Constant SoaTest Crashes
Lately, I have been experiencing more than usual crashes from parasoft. Now it appears to happen when I execute a test suite, and after 6 or 7 steps of the 50 or so complete Parasoft SOAtest & Virtualize: Version 2020.1.0 (9.10.9.20200430) -- Copyright (C) 2020 Parasoft Corporation## A fatal error has been detected by the…
-
Kerberos Authentication
I try to setup Kerberos Authentication but hit to the error below. The file krb5cc_ is available in the system, but not sure why SOATest cannot find it. Any idea on how to resolve it?
-
chasepaymentech CC encryption
I'm trying to dynamically encrypt credit card info before passing it t to our API's (simulating the process in the UI, using dynamically-generated PIE settings for the payment with our client chasepaymentech specific .js (https://safetechpageencryptionvar.chasepaymentech.com/pie/v1/~removed~/getkey.js). The sample results…
-
How to get array item count and then increased total count by +1
I've a scenario to add item into array using POST call. Now I've to validate whether the item is added into array list or not, so will check array size increased by +1 or not. I will use GET call to get count of array before and after POST call. Any solution? Here JSON Data Bank may not work, even if get a total count, but…
-
Jython not returning Data Source value
I am using soavirt 2020.2 version. I am trying to use extensibility tool to get a value from writable datasource and get the error below. I tried convert to string and still the same. Assuming there is a convert to unicode in Jython but could not find anything. Any help appreciated. I eventually want to get current time in…
-
Report that has request/response in SOA 9.10
Normally in the report for project in which a few TCs are failed we can see the request/response XML by clicking on traffic viewer on the HTML report generated. Similarly how to get all the passed TCs details as well with a link to request/resposne XML ?
-
SOAtest CLI - Increase Functional Traffic Limit KB's
Good afternoon, I would like to test out doubling the capacity of traffic reports from the default of 500kb's to 1000kb's. I am assuming that the desktop and soatest server utilize the User-Defined Example Configuration that ships with Parasoft, and this is what gets utilized if you just click the play button on any test.…
-
Call Java Function in JAR File
I have a java function outside of the message flow I am testing that takes a string, processes it, and then returns another string. I need to call this function and store the returned string for use in another test. Do I want to use the External Tool, Extension Tool or something else? How do I connect to the jar file?…
-
Using a custom property file instead of the common one with soavirt server license
I have a docker image loaded in a On-Prem location. We are using server licenses. The servers are up all the time. They are not using the deploy and destroy pattern. That said: Is it possible to use a "project specific" properties file instead of the one that is specified within the docker file? We are using the shell…
-
Announcing the 2021.1 release of Parasoft SOAtest, Virtualize and Continuous Testing Platform
The latest release of the Parasoft Continuous Quality Suite of API testing tools is now available with updated versions of Parasoft SOAtest, Virtualize, and CTP. In this release, we focused on four primary areas. 1. Requirements view added in SOAtest to correlate tests with traceability workflows. 2. Increased accuracy…
-
context variable not getting set
from com.parasoft.api import * from java.io import * import java.util.ArrayList as ArrayList from java.util import * def readCSVFields(input,context): CSVPath = context.getAbsolutePathFile(' ');contextFilePath = CSVPath.getAbsolutePath().strip()contextFilePath = contextFilePath.replace("/ /", "/");fr = contextFilePath +…
-
Missing resources error message when execute the test scripts from Jenkins
Hi All, I am getting an error "ERROR: Missing Resources: The following symbols/resources were specified, but were not found in the workspace. Ensure they are valid and are relative to the workspace" when try to execute the SOATest scripts from Jenkins but I am pretty sure that the resource path provided is correct. The…
-
get Data From Traffic Viewer Object
Wanted to retrieve Header Info, Request Body & Response from Traffic Viewer Object from each test. I want to perform this task by writing code since I have 250+ scenarios in my suite and it is not possible to add Header DataBank for each test. My Suite is in REST.
-
Get values from the DB tool response and compare with external excel.
In SOAtest, I want to get the values from the response of a DB tool and compare those against the values in an external Excel sheet. Then, I want to derive success or Failure of the test. I tried XML Data Bank or JSON Data bank but both of them doesn't show the DB response. They just show the Select query and the elements…
-
Tool to write the Response data to external excel file
Hi Team, I have encountered a situation where i have to write the data to external excel file. I have tried to use write file option, still that would not be a solution as my data should go to external file.
-
Execute a test case when another test case fails
Hi, I have a scenario which has 7 test cases. I want to execute a test case (8th one) if any one of the 7 test cases fails. I am aware of "Test Result Dependency" option. it allows to select only one test case that is expected to fail. But in my case out of 7 test cases anything can fail. How can I achieve this requirement?
-
Compare datasource(expected data) with actual data in the database
Hi Parasofters, I have a problem. I am putting data in a database(SQL developer) via a process which loads some XMLs in the database. I have the expected data in a datasource in parasoft soatest. I want to compare the actual data in de database with the expected data in the datasource within parasoft soatest. How can I do…
-
Pass Parameters From SOATest to Selenic Test
I am running a test that calls a Selenic tested created from a Parasoft Recorder. I would like to pass few parameters to this test like the runtime environment (development, test, etc) and a customer id. When the test finishes I would like to determine the status and any errors that occurred. I thought I had seen some…