-
XPath and price filter
Hi all, There is any way to insert an price filter (like "/bookstore/book[price>35]/price") in the XPAth above? /*[local-name(.)="Envelope" and namespace-uri(.)="http://.../"] /*[local-name(.)="Body" and namespace-uri(.)="http://.../"] /*[local-name(.)="response" and namespace-uri(.)="http://..."] /*[local-name(.)="price"…
-
JAR file and Method tool problem
Hi all, I'm having a strange problem with my jar files and the Method tool. After put the class name into Project Configuration, the "Method" list became blank, and I not able to select any class method. I tryed to compile the classes with many different encodings, but didnt got any progress. Thanks, Douglas.
-
Importing the random package in python 2.5
Group I am trying to import and use the Random module within Python and am having a hard time getting SOATest to properly use the python method that I have defined. The code is as follows CODE from com.parasoft.api import * from soaptest.api import * from java.util import * from java.lang import * from random import * def…
-
Reporting questions
Several report questionsHi I have some reporting questions: 1) How can we automatically create a report with every run. Is very tedious to have do this manually by right clicking on the window. 2) How can I give the report a unique name. Username and timestamp will be ideal. 3) How can we make a test not show up in the…
-
How do I access a XML data bank from a script
Can you give me some sample code for accessing a previously populated XML data bank in a script. Thanks.
-
SOAtest Logging?
hi, is there a way to switch logging on in SOAtest? It would be helpful to create a detailed log file of the activity of the tools. We are trying to see whats going on with a JMS callback tool. thanks, Jonathan
-
Error opening Test script
java.io.EOFExceptionHi, I was working on a script on Friday and made some changes-->Saved it. But, today, I am not able to open that script/.tst file. When I try to open, I am seeing error: "java.io.EOFException" in the message window. However, I am able to open and modify other scripts and re-open them without any…
-
Stub Settings
is it possible to setup a response using the 'if request matches' setting, so that it responds if it does NOT match?
-
Auto Populating parametized attributes
We're using the populate to map large (and small) tests. I've not been able to find an Xpath that will auto-populate an attribute. e.g. We have an element to ship: <MyDt myattr="true">2008-03-11</MyDt> After a populate with the following fields: Record/MyDt/myattr Record/MyDtXL Record/MyDt The test will populate as…
-
Silent Install
Does SOAtest support silent install? I got the setup installing silently with commandline switches as far as distributing the binaries, but at the last step it asks whether to install the SOAtest Service. This dialog seems external to the Innosetup exe so I wasn't sure how to get around this dialog.
-
Null value causes "column is not a valid date"
This may be more of an XML question, but... We have a non-required complexType element within a request message which takes data of type Date with an attribute which takes 'true' or 'false' as a value. As far as our service is concerned, we can pass the equivalent of: CODE<MyDt MyAttr="true"/> However, SOAtest is giving me…
-
Report naming issue using command line
Hello- I have run across an issue that a couple of previous posters have but, have yet to run across a resolution. I am using the command line feature to run all of our tests in a batch process and have an issue when using %d for reporting - it is printing literal 'd' instead of the date: so, my report is d_ReportName.html…
-
DB calls
writing to a data sourceI have a sql insert that works fine. I need to capture into a data source the IDENTITY of the entry, to be used later in a test. i need to do this roughly 12 times. What is the best type of data source to do this? $[Ident: MSG_ID] = SELECT SCOPE_IDENTITY() Doesn't work. Can I use more than one data…
-
Select to Data Source from DB call
How is this done? How can I fill a table, and then use the data from that table? Can I use a setup test to query a Database and populate a SOATest Table? eg : SELECT H.MSG_ID, H.MESSAGE_TYPE FROM dbo.HOLD_QUEUE As H WHERE H.MESSAGE_KEY_TXT = '$[Key]' AND H.MESSAGE_TYPE In ....
-
JSON Data Bank tool using
Structure of the JSON object is not displayedHello, I know that JSONDataBank gives a way to visualize the structure of the JSON object, but when I tried it to use this tool, the message structure was not displayed under JSON tab after running test. Only 'this' word is here. I right-clicked on this word and selected 'Expand…
-
JMS NamingException
Unable to execute a SOATest while trying to send a msg to WASHello, I am trying to send a message from SOATest to a queue registered on a WAS-server. I get the following error message in the SOATest console: JNDI NamingException: class com.websphere.naming. CannotInstantiateObjectException. This could be caused by a…
-
Does SOAtest support Spring remoting?
Can I use SOAtest to test services that are created with Spring remoting? As far as the tool is concerned, would it be any different than testing any other service - just specify the endpoint and request, then configure the transport type and settings, or is there more to it?
-
Setup tests - Run before Standard tests
Setup test: doesn't seem to be working for multiple iterationsHi, In my tests, I have one scenario containing 5 different test cases. In the scenario, I tried to setup test as methods and output of those methods, I need to use as request parameter for those 5 different testcases execution. - I have a comprehensive…
-
How do I get writable datasource values in an array
Hi, For one of my tests, I wanted to get values from datasource into an array for verification of extracted values from my response traffic. Here is what I want to do: - Using DB tool & XML databank, am extracting DB values and storing them in writable datasource. - In a method A, I am extracting parameters from response…
-
Backend testing
Issue faced while testing oracle databaseHi, I am trying to execute a simple SQL query from Parasoft SOA test tool for Oracle database(version:Oracle 9i, Operating system:Windows XP). But I always get the error-"ORA-01882: timezone region not found " . For any query for any table, I get the same error. The queries work…
-
Using XPath in Method
Hi, From my response traffic, I am extracting a section using XML transformer and storing it into a variable. Now I want to use that variable in another method and need to use XPATH to extract some attributes for certain calculations and verification. Example: my variable will have data like: <TEST1> <CO A ="12" B= "23"…
-
Variables used for database queries
I use DataBases as datasources for all of my test. In a particular project I may have 50 of these. Our data is site specific, so my queries look like this: select account_number, site_ID, WORK_ORDER_NUMBER, WO_STATUS, WO_TYPE, CHECK_IN_STATUS, ASSIGNED_INSTALLER from con_work_order_master where WO_STATUS = ' ' and…
-
Using stubs to test against a real SOAP client
The SOATest tutorial describes how to create stubs and run them test against the SOATest SOAP client. This is fine, but for me the true usefulness of the stubs feature is if it can be run against my 'real' SOAP client (in my case a small GUI widget which consumes the web service). The beauty of testing in this way is that…
-
test with Response Transport Header - diff
fails if order of headers is differentI'm using Messaging client for HTTP requests (working in SOAtest 5.1.1). I need to analyze a response body and headers. In my case headers can come in different order or some of them can be omitted. Could you suggest a convenient way to check the existence of predefined set of headers…
-
Environment files
setting from the command line...Hi, is it possible to specify an Environment that is not in the .tst files' list of Environments via the command line? I have tried specifying a path to my environment file, but appears to not work.
-
SOAP Client Form XML
SOAP Client Form XML with XML Data BankHi, We're using the "Form XML" view to construct our SOAP Client test request message. We also use a method to format the data input from our excel datasource and store with XML Data Bank (with XPath). Our datasource column sometimes would contain a list of data seperated by a comma…
-
How to get the response header in scripts?
How can get the response headers of the test in my pyton script? What Api to use? thanks Rama
-
Does SOAtest support an XML result type of xsd:integer?
Does SOAtest support an XML result type of xsd:integer? Essentially I need to know if the XML Data Bank feature would handle a result/response containing something similar to: <null_xml_element xsi:nil="true"/> thanks!
-
Scripting - Where is the standard output stream directed?
If you are using the println method in a method tool then the standard output stream is directed to the console which is not shown in SOAtest when running normally. The console is shown however when using st.exe which shows the console in addition to the GUI. You would see the output in the console in this case. The…
-
How to add a global method
Hi, We have in our SOAP tests a lot many operations that are using the same method for some or the other purposes. How do I add a method globally so that instead of calling the same method in every opertaion, I can call that once for all of the operations? Ex: We have operations 1A, 1B, 1C using the same method 2A. And…
-
How to validate response elements with SQL query result?
hi, i have added database as datasource and executed the query, then forwarded the result to table. so table has a set of records. now i send xml request to webservice and gets response. now i want to validate the values of response elements against values present in table(sql result). please let me know how this can be…
-
How to compare 2 xml response files? (Other than Diff control)
hi, i run a request r1 against one webservice (endpoint) say e1 and get response as res1. then same request r1 will sent to different endpoint e2 and get response as res2. now i want to compare the res1 and res2 xml files. i dont want to use Diff control as it compares the files line by line. i want the files to be…
-
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!