-
Virtual REST API's
We have an application that has both SOAP API's and REST API's. The SOAP Api's are all accessible and I have used them to create test cases. The REST API's are virtual and so we don't see them in the file system. According to software documentation: "When a request is sent to the REST API, the URL is inspected and compared…
-
Is there a way to have a specific test run if the test being executed fails?
I have a rest API that I am testing. I would like to run a test that grabs the log files from my server when a test being executed fails, i.e., Test 1 - POST command . Test 1 Fails, GET Logs ELSE . Continue
-
Is there a way to use the value in 1 databank as a variable in a subsequent databank's XPATH?
I have a GET REST call that gets data and I store that data in an XML databank, for example, a part name (partName). In the next GET REST request, I want to search the data returned and store only that data that is associated with the partName. If I knew what the part name would be, I could code the XPATH to be something…
-
Is there Limitation on Writable Data Source
what is the limitation on a writable DS? I have a scenario where I call a service and it will return about 60K records. Will a Writable DS be able to handle it? I want to use that data as a comparison to another process downstream. Here is the flow. Service calls a cloud app and the resultset inserts into a DB. another…
-
how to preview HTML response using parasoft SOA test 9.9
When I try to Execute GET Call using PostMan, I am getting successful response and I can see HTML page content in response. where as when I use the same GET Call url in parasoft via REST Client , I am getting http:307 and header has a redirect url. * can someone help me understand why the behavior is different in Parasoft…
-
How to use SOATest in Eclipse Java/Selenium Project
Hi Team, I have seen an option to add as SOA-Test Jar in Java/Selenium project. I dont see any documentation for it in the help file. Any help would be appreaciatable Regards Udaya
-
Assert JSON Response with multiple Rows from the DB
I'm really struggling with getting this to work, I thought this would be an easy use case for the software. However comparing the multiple rows from the JSON response to an equivalent query in the database isn't working. Here's what I've tried: 1. Create a writable data source that will be populated from a JSON databank.…
-
How to pass array of inputs where array limit is Dynamic and unknown while setting up
Hi Team, Here i encountered a situation where i need to send the data in an array of elements, where i don't know the size of the element. { "cars":{ "Nissan":[ { "model":"Sentra", "doors":4 }, { "model":"Maxima", "doors":4 } ], "Ford":[ { "model":"Taurus", "doors":4 }, { "model":"Escort", "doors":4 } ] } } Also would like…
-
How to ignore XML Special/Reserved characters in XML Response
Lets take an example where xml response is retrieved from a table. When data is retrieved from table, it used to be adding xml reserved characters. usually it will have < as "<" and > as ">". You cant perform assertion or extracting the value is difficult. We have to use "Transform XML" to the node where we get the data…
-
How to dynamically create a SOATest workspace and add a project/tst (Through command line)
Hello Everyone I have a query for SOATest 9.7, we are trying to achieve following to test things without any manual intervention when a build/merge happens. Struggling to achieve step 2 & 3. Could someone please help. * On some test machine, checkout latest copy of a SOATest suite from SVN/Git * Create a SOATest workspace…
-
Browser recording with redirect
I am trying to create a browser recording. I'm having issues because the html page I'm opening redirects to a different url. I’m using Chrome as a default browser. When I try recording from SOAtest I can see that it tries to do the redirect but I’m getting a blank page as a result with the following error: “the…
-
soatestcli unable to execute .tst that has selenium and dependent modules.
I have created one tst in soatest which invokes selenium and some other dependent jars. If executing through SOAtest everything is working fine but if trying to execute through soatestcli getting errors saying "selenium apis and parasoft apis are missing or not found." Note:I am invoking soatestcli thorugh remote pc via…
-
Extracting redirectHtml from JSON response and opening the page in a browser
I have a test case that spans from Rest client to web browser. My first test is a REST client output of which I need to pass to the browser. JSON response from the Rest client contains an element with html content. So e.g { "RedirectHTML": "…….”}. This is the html I need to open from a browser in order to perform some…
-
Accessing JSON data bank from Jython
How to access element from JSON data bank via jython, manipulate it (remove special characters from the string) and save it back to the data bank.
-
How to Send PDF file in a request field using Parasoft SOA test tool
Hello, I am trying to send a PDF file in one of the request field(fileContent). tool : Parasoft SOA test 9.9 { "fileMetadata" : "sfdsf", "fileName" : "dsdfsd", "fileContent" : "" } note that I am not just sending PDF file in the req, I also have to send some more fields along with the PDF file in the req. it;s just in one…
-
SOA Test integration with hp extream batch compare tool
I would like to know whether we can integrate soa test with with batch compare tool?
-
Pricing for "Web Automated Testing"
Hi Guys, I am busy comparing web automated testing tools. I have TestComplete, Parasoft and Selenium. Could you please advise me on how much the licensing for Parasoft would be on an annual Basis? I will be doing mobile and web based testing for my company.
-
Parameterizing an Excel Spreadsheet Data Source name
I want to parameterize the File Path of an ExcelSheet in DataSource. In Parasoft help option I found below options but in these options I didn't find the way to parameterize the name of .xls file. Can you please help me with it. Specify the path to the Excel file in the File Path field. You can use the following variables:…
-
How to start scripting in soa tool
Can u pls help me with basics to start writing script in soa tool.how to get browser in script & how to pass paramter values
-
Some test scripts are being Skipped
I am trying to check out the scripts from SVN and run all the scripts from command line. But not all the scripts are running. Some scripts are skipped from the execution. I dont know why.. I didnt do any changes to the scripts or configuration. Anybody does know the reason why some scripts are being skipped???
-
How to programmatically deploy a stub
Hello, I have an SoaTest with a stub simulator that I should deploy on Soa Server each time I want to run the Test. So I want to know, is there any solution to automate the deployment of the stub on the Soa Server with a jython script or java class ? Thanks,
-
how to translate the windows python script to linux version
Hello Getting the import module error while i run the script in linux, below are the import statements from soaptest.api import * from com.parasoft.api import * from java.lang import * from java.text import * from java.util import * from java.io import * These works fine in windows, however in linux its failing:…
-
Custom Assertion in Jython
Hello, looking for a sample script that can read environment variable and compare it to the JSON response value. Also, please point me to the scripting documentation to use with SOATest, if any. Thanks!
-
Importing from DevTest
Is there a means of being able to import scripts from DevTest to SOAtest. Primarily looking to reuse scripts/migrate from DevTest 8.5.
-
Need to run the SOATest test scripts from Jenkins on Linux server
Can anyone help me to provide the code to run Parasoft SOATest test scripts from Jenkins where the Jenkins installed on Linux server
-
Compare a set of elements of the JSON response to the standard set of elements
I have a JSON reponse with 152 currency codes fields. I need to compare the whole set of currency codes in the response with the standard set of codes. The issue is the currency codes in the JSON response are dynamic and they do not have a order, if they would have I would have added a string comparison and mapped to my…
-
assertion
can someone tell how to validate(assertion of) the databanked value 0.28545 when we are getting .28545 in the response.
-
Rulewizard Help
I want to check if the first line in a file is a comment or something similar. Which node specifies the exact line number in parasoft rule wizard?. Line node's expression gives the number of occurrences is what I understand, Ex: $$>=3 means the node prior to line node has less or equal to three occurences I need to know…
-
SOATest Branching
How to branch SOAtest .tst files? I see we can convert this to xml but haven't see more threads on how folks use parasoft SOAtest in CI Automation implementation. SCM - Stash or gitHub
-
cross join on data sources
Hello, I get the fact that data sources operate based on row numbers but I would find it useful to define data on 2 data sources and operate on the cross join of them. For example Data source 1 A1 A2 A3 Data source 2 B1 B2 B3 I would like to operate on A1 B1 A1 B2 A1 B3 A2 B1 ... A3 B2 A3 B3 Is there any way to achieve…
-
How to run a test multiple times
How to run a test multiple times1. How to run a test multiple times? 2. I need to run two tests multiple times in a test suite, which has other tests as well. Other tests need to run only once. But the two tests alone has to run multiple ttimes. where do I configure?
-
To run a test multiple number of times depending on the count condition.
I have a scenario in which I have 3-4 tests.I have used a global variable "count" at scenario level and initially I have set its value as 1. From the SOAP Response of the test I get the exact value of count which I need to set, for Ex: count = 16. I have few more tests in the same scenario. Now I want to run the complete…
-
Iterate Test based on increment of Global Variable
How we can iterate a test once the value of global variable is getting changed.
-
.NET WCF SOAP Client FAQ
Windows Communication Foundation FAQCommon questions: 1.) What is a binding? In WCF, a binding describes the transport, security, and message encoding for a web service's endpoint. The SOAP Client needs to know the endpoint's binding in order to communicate with the endpoint. The SOAP Client can determine the endpoint's…
-
Blue screen occurring after Windows Creator update (SOAtest)
Be aware that several users are reporting issues when upgrading windows 10 with the "Creator update." These errors can take many forms but the most common of which is a blue screen. This seems to be an operating system issue that causes bad interactions with the underlying drivers. At this time the resolution is to roll…
-
Reporting in parasoft
Is there a way I can have 2 reports generated in one run , I need one small report with passed failed count in the email attached from Jenkins and a details report which has all the details. I run the test through CLI command.
-
Command Line Script
I have a project that has 3 tests underneath it that I want to run using command line in a batch file. I want to run all three of the tests on one command line script. Do I run the command three times, one for each .tst file or can I run it at the project level? When I open the SOATest 9.10 GUI I am able to run it at…
-
SOAtest CLI command - unable to run the particular test
Command used "C:\Program Files\Parasoft\SOAtest\9.9\soatestcli.exe" -runtest "C:\Users\xxxx\parasoft\workspace\DailyRxxxx\abc.tst" -config "C:\Users\xxxx\parasoft\workspace\DailyRxxxx\Example Configuration.properties" Earlier the same command used to run properly but now I face issue and get below message INFO: Scope not…
-
Customize the HTML report
Is it possible to customize the HTML report generated after execute the scripts from command line? like change the heading of report (usually its displays as "FUNCTIONAL TESTS"), remove the task by author table. Can anyone provide me some solutions?
-
Adding message to the reports
For Failed test , context.report command is used to show the particular message . Is there a way to show the message for the success test as well . Can we show the application.showmessage on the report generated. Need to show the message added in extension tool for the passed script with success message and the custom…
-
how can I validate the field name? in parasoft SOA test
Hello, i want to add an assertion to check the field name is returned as per schema. para soft SOA test 9.9 e.g: "status" : { "serverStatusCode" : "401", "severity" : "ERROR", if I want to check field name "severity" is returned as expected. we have standard assertions to validate the field values , But to add check point…
-
How to Verify Date Time difference in Parasoft
I want to verify the difference between two dates in Parasoft. My responce looks like below: <TodaysDate>06/28/2017 14:02:06</TodaysDate><FutureDate>08/28/2017 16:18:55</FutureDate> Along with the Date in my response Time is also displayed but I want only the date Difference.
-
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 can I use an XPATH with a parameterized value in a rest call
I have a GET that stores values in a Datasource using an XML Databank I then want to extract a value from my next GET based on value in the Datasource. For example, say in the first GET, I store 2 for the number of widgets in the Datasource. Then the next GET has another XML Databank that extracts one part for each widget…
-
I want to copy the logs from the browser and save it in a .txt file.
I am trying to save the logs content from the browser in a single variable but I am unable to do it as the logs content is very large and complete logs are not getting saved in a single variable. Can someone please help me over it. Thank you
-
How to read xml data from the server Logs present on central repository
The log files are generated on the central repository and we want to extract the relevant logs by differentiating it using the unique reference number. How can it be achieved, can anyone please help us over it.
-
Enable view traffic option in localsettings.properties file
Can anyone please tell me how to configure the view traffic option localsettings.properties file. I know how to do it in GUI. but i have to update in localsettings.properties when execute the script from command line. And also disable API coverage option.
-
DB tool with extension tool
I am very new to SoaTest and was having difficulty utilizing the extension tool with the DB tool. I was wanting to access the results of a db tool query within the extension tool but was having difficulty doing so. The input object just shows "text" where if i attach the extension tool to a soap response, I will recieve…
-
Extract data source value using javascript
I need to extract value of datasource column using Javascript and combine it with other values. I see some examples of Jython in the forum. Can't we achieve this using Javascript in SOATest?
-
Pymongo in soatest
how to add the pymongo in soa test. and from where can i download the pymongo jar file for jython?