-
How to access SOAtest Environment variable?
from Extension toolHow would one access defined variables in the Environments feature from within the Extension tool? I don't see anything that addresses this defined in the Scripting API...
-
size limitation for a 'xsd:base64Binary' type?
I'm doing a request that has an element that is of type 'xsd:base64Binary', and I choose to reference a .tif file. If that file is 28kb, the request is successful. However, if that file is 80kb I get an HTTP Response Code 400 that says 'bad request'. Is there a limit on the size of the file that SOA Test will send? I…
-
How to Switch Transports
The first script changes all tests in the suite to HTTP 1.0 with close-connection. The second script changes all tests in the suite to HTTP 1.1 with keep-alive and chunking. Set to HTTP 1.0: CODEfrom java.lang import * from com.parasoft.api import * from com.parasoft.util import Util from webtool.messaging import * def…
-
Capture and Loop through the response
Hi, I have a query. A method returns 10 records. If there are more than 10 records then this method returns first 10 records.[Sorted by date/time creation] other wise it will return based on the number of records exists. There are 5 attributes in each record. Name is one of the attribute. The Name attributes is different…
-
Help with Response validation using DataSource
Regression controls not picking the latest values...Using Response Validation Wizard I created 'Regression Controls' for specific elements within the SOAP response. Set up the Datasource (Table) with Column names matching the Response elements and expected data values. Is the data statically bound to the regression control…
-
External tool does not exit - External tool should not require user input
I want to run an executable (.exe) that needs to an Enter key when it completes so it can exit. How can I do this using the External Tool? When running the External Tool and invoking the .exe, it nevers stops because the .exe needs the Enter key to exit. Does anyone know how to work this out?
-
Writable data source modes
What do they each mean?What do the different modes in the Writable data source mean? There is Setup mode: append and Standard mode: Overwrite or Append. Say I want to keep a bunch of data from one test suite. Later in a second test suite, I want to iterate through all that data, act on it, and then delete it. It seems like…
-
JavaScript in a file
How do i use a javascript in a file ?I have a javascript that will generate GUID's and would like to reuse the script without having to copy and paste the content into a textbox every time i want to use it. Any hints on how to do this ? Regards, Mads
-
Transient Test Suite Variables
Creating, Using, and SavingHi Everyone, A lot of this information can also be found in the Scripting API accessible via the Help Menu. The examples here involve variables that will be reset to the initial value of your choosing after each test run. These are available as far back as 4.5.1 SP2.0, although the GUI has…
-
read, modify, use and save number
I need to be able to read a number from a file, increment that number, use the incremented number in other data sources, and save that incremented number to the same file. In other words, I need an incrementor that is stored between test runs. Any ideas?
-
Parameterization in DB tool
Parameterization in DB toolHow to get the SQL Query in DB tool parameterized by a nested element of XML Data bank. I used the following query but got SQL error Select * from where = $[long] where long is the nested element of OrderId which is the element in XML Data bank
-
One to Many Data with XML Data Bank and Writable Data Source
How do we create a one to many data sourIs there a way to setup an aggregate data source in a test suite that uses values from a single row of one data source (like a global) with multiple rows from another? For example, create a global data source that contains login information and use the same values for each row from…
-
Generating a unique number
For writing to an XML Data BankTo generate a unique number so that you may write that number to an XML Data Bank for use within another test you can use the following script. Within a method tool make sure python is the selected language and then enter this script. You can then chain an XML Data Bank to the method tool,…
-
XML Data Bank to Write File
XML Data Bank to Write FileIs there a way to use the write file tool to create a file based on a parameter that is saved by the XML Databank? For example, I have a response which I've saved one of the values in the XPath and the data source column name is called "getPreparedDataReturn". Can I create a file with this…
-
Using PST as a License Server standalone on linux
PST contains three products which are GRS, TCM, and License Server. To only use the License Server as a standalone installation on linux, follow these steps: 1) Download the PST file. The file name should be similar to PST_(version).sh 2) Run chmod on the file to make it executable. For instance, chmod u+x PST_(version).sh…
-
How to give expected result for a test
Can any one tell me how can I give Expected results for a test. For ex: I'm using calculaotr service, i want to give expected result for add test.
-
How to use the "Scripted XML" option
to generate XML within a SOAP ClientThe following example shows how to use the "Scripted XML" option within a SOAP Client to dynamically generate XML. To use this example: 1. Create a SOAP Client 2. Enter "http://soaptest.parasoft.com/calculator.wsdl" for the WSDL URI 3. Change the SOAP Envelope combo box to "Scripted XML"…
-
Scripting - Print to the Message window
how to?Hello, is it possible to print to the SOATest Message window using the Method tool? or other? Thanks!
-
Multiple Regression Controls for use with Mulitple Rows in an input data source
How do I ingore arrays of elements?I have a test that runs 4 iterations of a test and returns arrays of data. In one case I expect to verify 5 different arrays of data and in another test I only need to verify three arrays of data. How can I configure the test to verify upto 5 arrays and ignore arrays that are not…
-
Automatic Regression testing - data source iteration
Automatic Regression testingHello All, I am trying to execute the same test twice with a different endpoint value for each execution. This also must be done automaticly via the command line. How can I do this? Thank for you're help
-
Script to generate and return UUID
The script below invokes the SOAPUtil.generateUUID() method to return a string containing a univserally unique ID (UUID) CODE### Name: generateUUID ### Author: Mark Carlson ### Date: 09/15/2006 ### ### Description: Uses Parasoft API to generate universally unique ID (UUID) ### ### Usage: Returns string containing uuid ###…
-
test executes 5 times, store data using XML Data Bank in Writable Data Source
Saving mult iterations of a responseI am using our login service that access a data table and runs 5 times, once for each login name that i have listed in the table. After the I run the service, I can see that it executes once for each of the 5 rows in the data table. The traffic viewer shows 5 responses and 5 differenct…
-
Cannot access global properties from a script
Is it possible to access global properties such as database account information from a script? Mark
-
External Tool Usage
How is External Tool inteded to be used?First Question: What is the difference between the Input field and the argument list with the External Tool? Basically, I don't understand what the intent was for using Input vs an Argument except that Input is used for a very long argument such as an XML file. Also can they be…
-
Penetration Tests
How to set them upHello I have been tasked to set up Penetration Tests. Using the wizard I have created the Test Suites for the various tests, Parm Fuzzing, SQL Injections, etc. but am not sure as to what goes into the Data Source Attck Fields. I'm assuming in the Successful & failure fields I enter the data that is needed…
-
Using values returned from Database as input for next request
I am new to SOATest and have already worked with QTP web services addins. I wanted to know how can I store the value that is returned as a response from the DB to the web service. Basically I want to use this response as an iput to my next request
-
Test Suite Reference
I noticed the menu option File->Add Test->Test Suite->Import. What is the best way to use this? Can test suites imported by reference be used to share method tool scripts without making extra copies of them in the new project? Mark
-
Dynamic data - scripting and auto
Is there a way to control the automatic generation of data for a field in a test case? How exactly does the "Auto" option work? I would like to randomize the end of a string example: user101, user205, user500 ... I don't want to list them manually in a table ... Also, I have a field which I would like to auto generate, but…
-
Relative Path and External Tool
Persist as relative path optionIs there a way to make the external tool a relative path? If not, can that be added in?
-
HTTP Get and Post requests with SOAtest
HTTP Get and Post requests with SOA TestJust wondering, If we can send HTTP Get/Post requests with SOA Test and receive the response back ? Or SOA test works only with SOAP requests ?
-
Could not make connection error - Call Back URL
Hi Cpark, 1) I have just started learning SOATest. I went thru the client testing topic on Tutorial and when i tried running emulated client, i got the following error 'Could not make connection: Connection timed out: connect:. What does it mean? How to get rid of this problem. 2) What is an call back url? As i am a newbie…
-
Reading parameters form a file
Reading parameters form a fileMy requirement is to execute test suites against multile EndPoints with different SOAP headers. Can SOA Test read "EndPoint" or "WSDL URI" or "SOAP Headers" form a flat-file ?
-
Test Flow Logic Question
Hey guys I have a test case which I use 3 calls to succeed. 2 calls to obtain information and store certain output in an XML Databank and the third is the service under test. The service under test has a datasource of accounts which it rifles through. What I need to do is create a test flow which forces the Service Under…
-
Conformance Report
I am trying to figure out how to share a WSDL ws-i conformance report but it seems that the XSL files and other links in the report are hardcoded for my machine. Is there a way to send the report to someone or to download it as a unit with the XSL and links as relative paths to the report itself?
-
Parameterizing within collections?
is parameterizing a word?Hey folks - first post here... go easy on me... I'm in the process of setting up my first set of parameterized tests in SOATest, using the SOAP Client in Form XML mode/view. My question pertains to stuffing data into an element within a collection - primarily, how is it accomplished and persisted…
-
Simple JavaScript scripting example - Random Number
I have tried to make a JS-script, but I find it difficult, ref. FAQ Question 15 (p.414) in the User's Guide. 1) Is the description of this FAQ Question updated according to version 4.5 of SOAtest? I have problems to understand the explanation. 2) Is it possible to make a small example in JavaScript (there are few examples…
-
Reports - Test count without execution
Is there a way to acquire a count of the individual tests in a specified directory (not test files or suites, but tests inside the suites)? This is for planning purposes so we can estimate effort required to update the tests based on infrastructure/architecture updates. Richard
-
Scripting input field data
Hi there, I would like to know if it is possible to add codes to dynamically define the value of an input field. For example, if I need to perform a boundary test for a date field that allows to be post dated up to 90 days. Instead of inputting a fixed date, and that cannot be regression tested in the future (as the date…
-
Change XML format for SOAP messages
Is there a way to change how the XML for a soap message is created? For example, is there a way to change what namespaces are assigned to elements? I know this can be done in Literal View, or Form XML, or even scripted XML, but I am hoping there is a more global method. When I use Form Input and add a header for…
-
What is endpoint of a client (from SOAtest)
If you look into the right habd GUI of any client in SOAtest project, we will see the endpoint with radio button option "Default", "CUstom" and "UDDI service key". whenever new client created in SOAtest the endpoint is same as url specified to create client. Could you provide more details on this how I can use this feature…
-
Python Scripting to format data
Hey guys, I got this script for doing a format, but I get an error that I can't reconcile. The error states that The Method Takes only one Argument. I've looked for the ValueMap function in the API docs but can't find it. Does anything look out of the ordinary for this script? CODEdef formatPhoneNumber(input, context): #…
-
Write File tool for written record of tests
Hey guys I've been experimenting with the write file tool to keep a record of requests as a data export strategy. It's just easier to upload request/response data to my issue tracking software from an already written file instead of mme being a human database. Finding the test in my test suite clicking the traffice viewer,…
-
Business Data Testing
Business Data TestingHi, I was wondering if there was a way of specifying exact return values from a webservice, to determine whether the test failed or passed. For example, there is a webservice which performs a calculation on an integer (it squares the input value), and I want to have a Test Case where I set the input…
-
Controlling the Content-ID of an attachment
Hi all, My web-service requires the attachment ID to be specified as a parameter inside the SOAP envelope, for defining the different actions to be taken on each attachment. For this I need to be able to define the content-id of a specific attachment, or get the content-ID, and use it as a parameter inside the request. Is…
-
Test organization - Testing http and https
Testing http and httpsCan I have a single project file (*.tst) for testing http and https protocols? Or, is it recommnded to have separate files for testing these protocols? Thanks, bmcuser
-
Can we generate reports for failed test cases?
can we generate reports for failed tc's?I have WSDL Tests , Unit Tests and Load tests in one project (test.tst) file. When I run the Tests , (1) is it possible to generate reports only for failed test cases ? (and not for all the tests cases). Thanks, bmcuser
-
Writable DataSource has regression control issue
Hey guys. With the help of Greaham we created a test which used a set-up soap client test to create a bunch of values in a writable data source which I then used as an input source for subsequent standard soap client tests. when I attempt to create multiple regression controls via the writable data source,soa test only…
-
Scripting Example for SystemTime
Does any one have an example how to script or retrieve systemtime with JYTHON in SOA Test 4.1? -LeapTester
-
Scripting - random 11 digit number
I have a test for one operation which has one input parameter and it takes 11 digit number. Can you please provide me a testscript which generates any random 11 digit number for input field. Thanks LeapTester
-
* How to return valid xml to an xml databank from JS
Using a Javascript method, how do I return valid XML to a chained XML Data Bank? Attempting to return a string value from Javascript results in: Tool "XML Data Bank" did not accept output from method "Method" Can this be done within the JavaScript method AND/OR in the UI through a chained tool? Python allows the use of:…