-
Modify Databank element value (number)
Greetings, I'm using a REST Data Bank to get a row number from the Endpoint URL (for example /Row/1), and then I need to subtract it by one to use it in a JSON Databank to get the first item (index 0) from a Messaging Client Response. How can I modify that value before using it? Thanks
-
XML data bank not retaining information enter in the Literal tab
I have an XML data bank that I'm trying to use and unfortunately the information that was entered in the Literal section needs updating but when I copy/paste new XML in that section then go to the Tree view it's not saving the new xml I've put in the Literal tab. Has anyone experienced this or know of a work around? I've…
-
Accessing Data Bank Values in Groovy Script
I have an extension tool test in my scenario that calls a Windows command file (.bat). This is a very simple command that returns the userid of the person logged into the computer. This is put into a databank that I want to pass into the Groovy script to build the file path for a PDF file the web application creates and…
-
[HELP] REST URL Databank Not Extracting value from Path
Hi, I am running into an issue where the virtualized service I created is supposed to extract a value from the URL path and make some status change in data repo. For some reason the value being sent in the request isn't being extracted by the REST URL Databank. I am using Parasoft version 9.10 Request Template Data Source…
-
how to create CSV files (editable in Microsoft Excel) from Data extracted from tests
Often you will want to extract values that are returning from a test and write them into an excel file. This could be useful when building data sources dynamically from previous tests. SOAtest does not have a native interface to create Microsoft Excel files, however we can easily create CSV files that can be read by our…
-
in response (or anywhere) - see values that were asserted
Hi, is there any way to see, what values are being checked in "XML Assertor". My Scenario: In my testcase i have put a XML Assertor where i am comparing values that I am gettign FROM DB and other service. I am not seeing anywhere which values were compared/checked in XML assertion. Thanks
-
Changing a value of an xml field after extracting from request
I am trying to extract the "ns1: month" field from the following request using XML Databank and then increase the value by 3 and populate it in response. <?xml version="1.0" encoding="UTF-8"?> CallingAppCode VLM0 RZZCA82 26 06 2019 Q . Please suggest a solution for this.
-
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"
-
how to use an XML Data Bank and Writable Data Source to extract multiple rows of data for later use
The Goal After completing this tutorial you should have a basic understanding of how to extract multiple values into corresponding data source rows that can later be iterated over for use in subsequent test steps. The Use Case For this use case we would like to request a list of all the books on the bookstore using the…
-
Combine two fields of SOAP response to One
I would like to combine two fields values of same SOAP response into One. So that I can assert the One filed of SOAP to REST response field. SOAP Response: Field 1 = date Field 2 = Time Combine SOAP field (1 &2) to Field 3. Assert SOAP Field 3 to REST response field. How should I do this?
-
Error in XML Data Bank with strings that contain "&"
Hi, I have a REST service that I am testing by querying a database for some name values and asserting these values against the service response. The issue I came across is that some values returned by my query contain the "&" symbol and when it tries to get that stored into an XML Data Bank, the whole test fails with the…
-
Retrieval date format
Is there a way to validate the retrieval date format: yyyy-MM-dd'T'HH:mm:ssZ – Ex. 2017-06-26T01:00:
-
how to parameter data bank x-path
Hello, I am trying to parameter data bank x-path from excel sheet. here is my scenario below is the x-path I have in my data bank. /root/item[1]/id[1]/text() Output item'1' will be picked up from the response. I want to parameter the Item[1] value with an excel sheet , so that I can control which item to pick up from the…
-
I want to truncate first few numbers in 16 digit number using xpath(databank)
Hello, I am using data bank to retrieve a value to use in subsequent test. But I want to truncate the value and need only last 4 digits of 16 digit value. This is the x-path /root/card[1]/value[1]/text() This is the result of x-path. 4506446460519412 when I press evaluate x-path , i should only get last 4 digits "9412" can…
-
How to extract data from a test and use it later
Hi there. I'm a newbie and i need some help with Soaptest: I need to perform a lot of tests, many of which need as input some data from the previous test. In my first test i send some information for authentication (user, password), and i receive many xml elements, one of which is 'sessionNumber'. Then, i need to use this…
-
How can I use a parameter from the SOAP response
as a parameter in a SOAP request? For example, Test 1 logs in to a service with a UserId and receives a sessionId. You can configure Test 2 to use the sessionId to perform transactions. To configure these tests: Clear the Deserialize Response checkbox in the SOAP Client panel of Test 1. Right-click the Test 1 node from the…