-
How Does SOATest and Selenic (and other Parasoft tools) Work With Multi-factor Authentication (MFA)?
We are being pushed to implement multi-factor authentication in all of our applications. Unfortunately, this will cause major problem with our build and deploy process and our automated testing. We are looking at creating a set of userids that are only used for build and testing but I am also wondering how others have…
-
Trying to Switch to a New Browser Tab Opened By The App
I have a webapp that creates a PDF document in a new browser tab. I want to confirm that it is a PDF report and not a simple error message that will be displayed if the generation of the report failed for some reason. The tab is created by the app but focus remains in the application tab. The problem I am having is that…
-
How to fetch multiple values from request and update to DB
Hi All, We have a request with multiple sections which has different id's and username as below shown in the sample request. Currently we are using JSON data bank to extract the values from id and username and in the next step using DB tool updating these values in to the DB table. However, it is only fetching the first…
-
REST client attachment validation
I have a REST request that returns a PDF file, and I need to verify the content of this PDF. Is it possible to render the content of the PDF as part of the REST client response in the SOAtest desktop tool so that we can validate it for correctness?
-
Capture data from a redirect
I have a REST call using a POST method. The endpoint does a redirect to another endpoint (I have the redirect checked). I want to capture the data from the redirect. Initially I used smart API and it gave me a "smart api" diff which has the data I need but I need it written out in something different other than diff too.…
-
Is It Possible to Type or Enter a Tab Key in SOATest?
I have a SOATest (2021.2) test that I want to enter or type the tab key a few times to give focus to a particular element in a web app instead of selecting or typing a value in it. I have not been able to find anything about that except in a very old post for SOATest 6.2 which involved adding script to a javascript file in…
-
SOATest Error - Not Connected to DevTools
I have a coworker in another department who is just learning SOATest and is starting with the basics of having the test go to an on-prem URL and login. The test ran successfully once and is now throwing the error with the message Not Connected to DevTools. She tried several time and is now consistently getting this error.…
-
How to fetch datasource values to xml payload
Hi, We have a xml payload as below, would need to add the values to the payload from datasource. currently it is just fetching first row's data and adding same value in 3 different name field, instead of that it should get the value from 2nd row for 2nd value and so on. sample payload : <Meter> <Names> <name>${name}</name>…
-
Executing Autosys through Putty
I have a scenario where i need to execute Autosys through putty. I need to enter connection string, Username, and Password in the putty and after that i need to give certain commands. Is the above scenario is possible via Parasoft SOA test? If Possible please let me know how to do it.
-
How to retrieve the data from 2 different datasource and write it to a file
Hi, We have a requirement to retrieve the Peak and PeakTime from db2 for the meter numbers retrieved from another db called db1. there was already a logic to fetch all the active meters data for a day from db1 and write it to a file, now we need to append the values for Peak and PeakTime to the meters which need to…
-
current date parameterizing in the sql query
Hi, We are using a query to fetch the data from a table by hard coding a specific date in the query. Is there anyway we can parameterize the date to pick the current date while execution and show the data for the same instead of hard coding the date. sample query using in the data source step: select * from input_table…
-
Need to Delete Current Text and Enter New Text in Web Input Field
I am using SOATest 2021 and am having a problem with a date input field. As a by-product of the framework we are using, trying to replace the default date in the input field results in a long string of 2 dates instead of the new date. Basically what I need is to Select All followed by a delete of the selected date and then…
-
SOAtest plugin eclipse goal
Hi, We are currently exploring utilizing new soatest maven plugin ( https://parasoft.github.io/soatest-maven-plugin/ ) in for automating invocation of integration tests in our CI Pipeline. We are hoping to switch from the homegrown solution that uses maven-exec-plugin to call a shell script that in turn delegates to…
-
I am running SOATest 2021 and need to respond to a file download popup in Edge.
I want to click the Open File link in the popup. I am unable to get the xpath for this link (I assume since it is part of Edge and not the app running in Edge). Can SOATest do this? If not, can I use AutoIt to do this? What would the script be? I see there is a MouseClick command in AutoIt but it wants the x and y position…
-
Mongodb Query Tool - Update documents feature
Hi Team, Just wanted to know that, Is existing mongodb query tool capable of updating records or documents. If yes then how should my query look alike in mongodb query tool. Regards Rahul
-
Text data bank
I think I need to use a reg exp on the following text to extract the value of 12/24/1938. Is there a online tool to do this for me? Date of birth: 12/24/1938
-
How to fail a test scenario using a matching string from response body
Hi Team, I am getting test scenario passed in the CTP since it is considering the http response code as 200 and returning PASS. But the response we are getting is failure in the response body so the requirement is to make that test scenario fail by matching the string from response body. For example: Response body…
-
Running/Skipping Tests by Environment in SOAtest
I'm on the lookout for a SOAtest solution to selectively run/skip scenarios/test suites and individual tests in specific environments. Ideally, something similar to Cucumber's tagging magic (like @dev, @val) to run or skip tests based on those tags. We gave test flow logic a shot, but it's not sufficient for all our use…
-
.cmd files
Can we execute.cmd files from Parasoft. And if yes then what option we need to choose
-
Testcase Iteration for API rate limiting concept
Hi Team, I want to execute the testcase multiple times by iterating N times for testing API rate limiting methods can you help me how to achieve it in SOA Test
-
Extension Tool SQL Data Capturing into Datasource
Hi All I am fetching the data from DB Sql query using Extension Tool the Data is fetching successfully & showing in Console but the issue is i am not getting how to capture those Data and store in Datasource for future usage , Can someone help me on this.
-
How to get the environment variable value using jython in soatest?
How to get the environment variable value using jython in soatest? I need to pass the Env Variables in the service request file with scripted option, How can I pass it? I have used the following option but get the NONE result. def getTestCdValue(input,context): testcd =…
-
Running Maven with SOAtest
Parasoft offers a Maven integration plugin that will allow you to execute SOAtest analysis on project with Maven. Please follow the steps below if you would like to have SOAtest execute during your Maven process: * Before you can use the Parasoft Test Maven plugin, you need to add the "http://build.parasoft.com/maven"…
-
Validation
I have one field in my json as Price : “40.0” ( in string) In json assertor , i am using numaric assertion to validate but its passing where expectation is it should fail as its not integer. How to validate that?
-
SOAtest, Virtualize, CTP 2023.2 Product Release Announcement
We're pleased to present the newest version of Parasoft SOAtest, Virtualize, and CTP, focused on enhancing your software quality practices with efficient and reliable test automation. This release introduces seamless integrations with OpenAI and Azure OpenAI LLM providers, enabling effortless generation of API tests from…
-
parameterization of xpath
Can i parameterize the below path instead of hardcoding- /root/item[type/Id/text()="123"]/Price/Amount I want to parameterize id .
-
how to validate data via xpath in json assertor
I have json data in below format and i want to verify that for perticluar source id"67678" amount is -100. i tried to give below path using json asserort and tried converting json to xml and use xpath but that did not work. /root/item/Ancillary[Id/string()="67678"]/Transaction/detail/Amount { "Type": "Mas", "Date":…
-
Recording APIs from ANY Automation Framework with SOAtest Smart API Test Generator
Today marks the 3 year anniversary where Parasoft released the Smart API Test Generator add-on for SOAtest, which was SOAtest 9.10.5. So in honor of this anniversary, I decided to publish a write-up on how users can record JSON/HTTP-based API traffic from any automation framework. As you may know, SOAtest Smart API Test…
-
How to extract values from request xml and write those values in the output file
Hi, I am looking to extract the values from request xml and write the extracted values to the output file. Could you please help to achieve this requirement. For ex: created Meter1 2.0 2023-08-21T06:27:04Z It should extract the values from xml like as below write in the output file created, Meter1, 2.0, 2023-08-21T06:27:04Z
-
SOATest Error - webtool.test.TestSuite cannot be cast to webtool.test.ToolTest
I am not sure what happened but I am getting this error message when trying to open a SOATest tst file. I am still able to open other test files but this one always throws this error. The full error message is: n error has occurred. See error log for more details. webtool.test.TestSuite cannot be cast to…
-
Compare 2 API's json responses coming in different Order
Hi Team, I am running 2 API's. Need to compare the responses and based on the result we need to make the test as pass or fail. Main problem is in every run blocks are coming in random order. Please how to do automate? API 1 Response: { "status": "success", "type": [ { "a": "1", "b": "2" }, { "a": "11", "b": "22" }, { "a":…
-
Parasoft SOAtest, Virtualize, and CTP 2023.1 PRODUCT RELEASE ANNOUNCEMENT
Parasoft is pleased to announce the release of SOAtest, Virtualize, and CTP version 2023.1. This update is available at no cost to customers on an active subscription or maintenance contract. What’s New in 2023.1? In this first product release of 2023, we focused on a few key themes: * Enhanced code coverage for…
-
Using Multiple Data Sources
I have a requirement wherein I have 2 data sources (D1 and D2). D1 has 10 rows which will be used to create 10 rows in DB. D2 has 10 rows which will be used to update 10 rows that are created by D1. Flow has to go like this: a) Read first row of D1 b) Process it and Create a DB record. c) Read the record created from DB…
-
How to parameterize the "Variable Condition" field in the "TestFlowLogic" of "Execution Options" tab
I want to parameterize the Variable Condition field present inside Scenario >> Execution Options >> Test Flow Logic >> Variable Condition. I want to take the value from "Environments" or "Data Sources". The traditional way of specifying "${some_variablename}" is NOT working
-
CSV file newly generated in a local folder , how can we use the latest sheet in subsequent step ?
Once a job is completed. A csv file will be loaded in a local folder like example : c drive. Latest transaction file should be picked up for the testing is the scenario under concern now. we should be able to pick the latest file on that particular day and time and use this data source in subsequent step.
-
SOATest runtime error 'No browser set' even though it appears to be
Hi! I am setting up SOATest (2021.2) on Windows Server 2019 replacing the Windows Server 2012. I have a number of tests that run in a browser. On the old server and on my laptop, the tests run like they should using Microsoft Edge browser. The test are unchanged on the new server but when I try to run them, I get the below…
-
where we can find user guide for Parasoft virtualize
Hi Team, Please suggest where we can find user guide for Parasoft virtualize
-
Does Parasoft have an application for Test Management? If not what apps do clients use?
I know CTP enables continuous testing and provides test database configuration, otherwise not real familiar with that product. On the database matter, I don't think that works well for my company because there are key dependencies within the product tested and outside that are subject to change from one release to the…
-
How to validate uniqueness of a field value in the JSON response.
Hello everyone, Can someone help me how to validate a field, if the value returned in response in unique and contains no duplication. E,g: In below JSON, id field occurs multiple times, I want to validate "id" is unique and it's not duplicated in the JSON response. { "merchantCategories": [{ "id": "0001", "description":…
-
Blank Spaces in Path in Linux Machine
Hi, I am using Windows Machine for our development work and ultimate deployment is with a Linux Machine. In my .tst file, I have below steps configured. 1) Get Project Location using absolutefilepath() 2) Execute a DB query and I am storing the results of query to XML Converter for converting them to CSV. Then I am taking…
-
How to restore working directory from GIT
Hi, how are y'all doing? I have a question: while usiing Parsoft 9.10.6 for a workspace having a project containing the master test suite modules and a "runnable" project containing references to the test suites, all very basic still. I use GIT as source management/version control. My working directory (where I initially…
-
Extract REST API Output(Literal) to Databank without External File Usage
Team, I have a REST API which gives output just as a literal and not in JSON/XML output. I wrote into a file and then wrote a Python Script to get into JSON databank. Is there any way to get output in JSON/XML without writing into a file.
-
How to extract any value from a response argument and write it to external excel/csv file?
Hi Team, Can you please help how to extract values from the response and write it to an external file excel/csv. for example: if am getting a response like below { "status" : "success", "wonum" : "1234567" } Expectation is to extract "wonum" response value in the external file.
-
Invalid XML input:Content is not allowed in prolog
I am trying to assert some fields from Writable Source in Extension tool using Jython and writing the assertion response to a excel file. When running the script, it gives me error like 'Invalid XML input: Content is not allowed in prolog'. But the Output excel file is written. I have enclosed the test suite information.…
-
Is there a standard Github Actions for soavirt?
Below is one for CTP https://github.com/marketplace/actions/execute-job We are looking for a similar setup for soavirt
-
Use two different .tst files for single assertion
Hi Team, We have a scenario in which we have to query the DB just before to Batch Job run and store the results in a data bank. Then after the batch is completed using the previously queried results, we have to check the DB for processed results. Can we write 2 different .tst for these and can we refer to the previous .tst…
-
For a XML response, how can i do a data type assertion validation?
I have started using xml assertions for the response validation. I am looking for sharp answer than generic ones saying try assertions from output. 1) I want to validate data type for the response. ( String or int or text etc) 2) I need to do data length validation 3) i need to validate actual response to the expected…
-
How to write DB Response to Internal Spread sheet table ?
My Requirement is to Query table 1 which may return N rows. For Each of the row, I have to query 3 other tables and do some assertions. I wrote the Table 1 response to a CSV file and created a data source out of that and used that as an input to my other 3 tables. But I have been asked now instead of writing to a CSV file,…
-
How to pass Variable to Extension Tool ?
I am using Jython Script for extension tool with an excel databank as Datasource. In addition to this, I need a variable which is defined in the test suite to be passed to the extension tool. Please do let me know how to achieve this?