-
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:…
-
How do I get rid of the error
Error occured during initial. of VMThis VM failure sometimes happens on machines with large amounts of memory, usually over 3 gigs. To fix this, we will need to pass an argument to SOAPtest to change the amount of memory allocated to the JVM in which SOAPtest runs. You will need to find out how much memory is available on…
-
How do I automatically decode Base 64 encoded
attachments in SOAPtest?To automatically decode Base 64 encoded MIME attachments received by the SOAP Client tool, you will need to use the Attachment Handler Tool. To chain an Attachment Handler Tool to one of your SOAP Client tests and use the automatic Base 64 decoding support you can perform the following steps: 1.…
-
How do I download and use the Unlimited Strength JCE
Java Cryptography ExtensionSOAtest uses a new key store provider, which supports more key stores. However, in many cases it requires the JCE unlimited strength Jurisdiction Policy Files to be installed. We cannot bundle it with SOAtest because US export laws restrict exporting cryptography technology to certain countries…
-
Extracting a particular row from DataSource
Hi, Is there a way i can specify/extract a particular ROW/s from Excel sheet or Table that was specified as a data source (Not all the rows in a specific column as it consideres by default) and assign it to a particular Test? This will help me in maintaining most of my seed data for different tests in a particular data…
-
Multiple DataSources
Is it possible to use multiple datasources in a SOAP Client test? I want to use a Database Data Source for one value in a test and a Generated Data Source for a second value in the test. However, the dropdown in the upper right for Data Source only allows one. Is there anyway around this restriction? Perry Hoekstra
-
Using regular expressions in jython methods
I would like to use python/jython regular expressions in a method. However, when I try to import re I get an errror ImportError: no module named re Here's a toy example: [CODE] import re def parseXMLElement(input): pre = re.search("<*?>", input) print pre Am I mistaken about the module to import? All the online examples of…
-
rounding in Python
rounding a returned value in PythonHi SoapTest, I have the nice little script written that will return a value that I will be using to compare to one of my results. I am having a problem, however, with length of the value. I need it to be only two digits after the decimal point. I can't seem to find a way to truncate in…
-
Path persistence for Import Test By Reference
I've been using import tests by reference. None of the tests I import are in the same directory as the test I am working on (or a subdirectory). I would prefer not to have to make hard links (or soft links) to these tests but here's what happens: 1. Take an existing test (#1) 2. Remove some set of tests and recreate them…
-
Python api documentation
Is there any documentation for the python libraries soaptest.api and com.parasoft.api?
-
Converting time stamp recived to different format
converting time stampsHi Parasoft, I have a method that when called returns date/time stamps as follows: 2004-06-26T12:21:11.0000000-04:00 I would like to use that date/time in an XML Databank but the format is not allowed by my system. Do you guys have a way that I can convert it to the following format:…
-
How do I add additional CLASSPATH's to SOAtest?
If you would like to use custom Java classes with SOAtest the following method. 1) Click the Customize Preferences button in the SOAtest toolbar (Alt+F2). Click the "System Properties" tab and add any required class folders or Jar files.
-
SSL Handshake
I had a new issue with the Soap test now. I am trying to execute the soap seervice which is internally protected by a SSL Certificate. That SSL certificate is not public, When I try to access this service through soapTest I am getting SSLHandShakeException. Please let me know are there any workaround to uncheck this…
-
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…
-
XML Encryption using 3DES
can anybody tell me how to use encryption tool to send a secure soap request through the soap client I want to use 3DES to encrypt the whole message... I tried it by using the external key option but by any way it was not able to send a encrypted data.... what is the exact method....to send a encryption request thanks…
-
How do I use scripts to send random numeric values
as part of the SOAP request? Select the SOAP Client node you would like to configure. In the Parameters section of the right GUI panel, select Method from the Value drop-down menu. Click the User Method Properties button. The User Method Properties dialog box displays. Enter the following script in the Text box. # Creates…