-
How to Assert XML Data Bank from DB with JSON Data Bank from API Response.
I tried with JSON Assertor, but it is not iterating!
-
How to call 1 of the SOAP Request Parameter in Groovy Script
Hi Team, I am trying to perform the Custom Assertion by using below code with Extension tool by keeping it as a separate Teststep import com.parasoft.api.*; public class Comparison { //Compares a value from a database data source to a value returned in a SOAP response public boolean compareToDatabase(Object input,…
-
How to compare values present in XML databank and textdatabank
Hi all, Can anyone help me how to compare the values present in XML databank & Text databank I tried with Diff but it's allowing only 1 value per once I need all the values present in 2 databanks to be compared at a time
-
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…
-
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…
-
No Nodes Found - XML Data Bank
Hi, On XML Data Bank step.. when i extract an element, and click on "Evaluate Path" - i see "No nodes found" result. How do i get value? i need this values to perform string comparison assertion. I also tried setting "Extract empty element as: [null]" - this did not work either.
-
Help with XPath Substring
I am trying to get a part of a string up to the point where there is a blank space in the string. However, Virtualize is saying that it does not recognize what the .indexOf() function is. Can someone guide me as to what could be the issue and how to get the sub-string properly in Virtualize? The XPath code is am trying to…
-
Scripting with a value in a XML Databank chained to Request
I am trying to access a value stored in a XML data bank that is chained to the incoming request. In my extension tool, I chained a XML data bank to see if I can successfully pass the value to the tool. my code: function f(input, context){ var id = context.getValue("Generated Data Source","traceId"); return id; } My issue…
-
SOAtest : DB Tool passing extracted values using XML Data bank to other queries in specific format
I am using DB tool with Results as XML -> XML Data Bank, it returns many rows as a result and I want all values of say nth field as input to succeeding queries in test scenario workflow. Is there any simplistic way to do this? For example first query select * returns few rows with fields say f1,f2....fn, I want all values…
-
Issue with Alteration within XML Databank
I have a client who is trying to replace a value in the XML data bank. They have the correct path provided and data source / column selected. However, it is not updating the value to the one in the data source column. Are there some additional steps they may be missing? Can it update on Xpaths that end with text() ?
-
Store multiple test Result into a same writable.
I would like to use a writable to fetch values from different tests and write into a same writable. Existing writable settings work fine for fetching multiple data from the same test. Expected scenario to replicate : * Create a writeable A at the test suite level * Create a new Test 1 by clicking on Add New – Test . I…
-
Iteration of Columns in Data Bank
Hi, I have some 25 coulmn names in my XML data bank and I need to use all the column names in a Jython script. I do not want to write context.getValue("Genearted Data Source","Column_1") ,..... upto Column_25. How can I iterate through the names in the XML data bank?? Thanks
-
Combine the value from two response fields in a third field
Hi, I am writing a SOAP Message Responder. Some of the fields of the response derives its value from a DataSource column while some gets their value from variables populated by an XML Data Bank. Now my question is how do I combine these values to populate another field in the response. For example, I need a field to be the…
-
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…
-
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…
-
How to apply an x-path into an array.
below is the sample JSON response, I want to get the documentid whose "subcategory" : "Loans" only i tried below, didn't work out. //documents/documentId[subcategory="Loans"]/text() I want to apply a condition on subcategory field and retrieve only document id which satisfy the condition mentioned. { "documents" : [ {…