-
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…
-
Profiles used in Scenarios
Is there any way to specify which profiles are used by a particular load test scenario? I am running a load test where I need to measure the performance of three message types (small, medium, and large). A test has been created for each message type and I am trying to establish a baseline. Currently, I select a single test…
-
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?
-
Clarification on Pre, Post nodes - Unit Testing
How to use themHi, I am unable to completely understand the Pre, Post and the OutCome Conditions in .TEST -Unit Testing I have a method which does not take any parameters nor return any parameters. The method when called , uses a public variable and performs some manipulations to the variable so that the value of the…
-
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.
-
fatal: librt.so.1: version `SUNW_1.2' not found?
How do I fix this?When I try to run Jtest on Solaris 8 I get this message: CODEError: tgsutil not loaded java.lang.UnsatisfiedLinkError: /devel/home/parasoft/jtest5/plugins/com.parasoft ..eclipse.api.solaris_5.1.51/jtest/lib/libtgsutil.so: ld.so.1:…
-
Postconditions that depend on method arguments?
How to validate method outcome.Question: How can I write DbC that validates a method outcome based on method parameters. For example: For a method named 'add': if (a == 10) and (b == 20) the return value must be 30 otherwise it's a postcondition violation.
-
Adding new Metrics
Where should I add new metricsHi, I do not quite understand how the mark up should be developed to add a new metric. Where should I save the implemented class? Could some one tell me how I should go about adding a new metric? Thank you
-
Changing/Checking severity level of rules
unable tochange/find the severity levelsHi 1. I have to change the severity level of certain exisiting rules(eg. PB.SBC,OOP.AHSM, CODSTA.VDT etc). But when i right click the the rule i can not see the rule wizard option. How do I change the severity of these rules? 2. After i run the jtest, how can find out the severity…
-
.Test and source control integration
.Test and source control integrationHi, I need to integrate .Test in file check-in process , i.e to verify that the file are OK after check-out/check-in. The problem is that .Test works at .Test project level or at assembly level ( while nUnit works at file level, i.e nUnit test is written per single *.cs file) How i can…
-
Instrumentation taking a long a time to execute.
I have a very large application, that normally takes about 3 minutes to perform all its memory allocations. It never seems to finish even the allocation phase with insure. I let it run all night, in the morning it was still allocating. One of my co-workers said that insure enters an infinite loop whenever it encounters a…
-
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…
-
Monitors in load testing
how do i view them?How do i view the monitors i've set while running a load test. Specifically, how do i view them at particular instances?
-
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…
-
jtest.TimeoutError?
Is this configurable?We're running into a problem where some of the code needed to build and run one of our test cases takes longer than 30 seconds, but Jtest times out with the jtest.TimeoutError error. Is this error configurable or bypassable? Thanks.
-
Jtest useful in eXtreme programming?
How do I make it useful?Question: We write all our Junit tests before actually writing the method implementations. This is following the eXtreme Programming paradigm. How can Jtest be useful in this situation? Answer: Since the method actually has to exist before the junit test (but the method body can be empty and return…
-
How to get html report from jtestcli?
-report seems only to give xml report...How can I get the jtestcli to give me an html report? -report usage seems to say only xml report is generated. And... when it finishes the tests it says, "wrote report to .xml"
-
Generating and running Unit Tests
The documentation says for the option 'Generating and Run Unit Tests' the Jtest generates Test Cases for classes without existing test classes and classes with old test classes. If i change the code and the old test cases are no longer valid, will this option overwrite the old test class with new teast cases or will it use…
-
Building on One machine to run on another with the same architecture
In order to build on one machine and run on another machine of the same architecture First the concerns for all Unix based platforms The bin and lib directories have to have been created on the run machine in the same directory tree as on the build machine. So if you were running on a Solaris machine and on your build…
-
Exporting test configuration
to list rules used to analyze the sourceHi, I have different JTest configurations for different categories of validations (say must-have-rules, nice-to-have-rules). Once reports are generated, I would like to know which set of rules were used while analyzing the source code and generating the report. So I am wondering if…
-
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…
-
Does Jtest support J2ME for mobile applications?
Does Jtest support J2ME for mobile applications?
-
EJB Testing
How does Jtest deal with EJBs?========================================== J2EE - The How's and What's ========================================== The most popular question Jtest end-users ask is "Can I test my Ejbs?". The answer is, yes. The second most popular question end-users ask is, "How?" "Enterprise web applications,…
-
Skipping classes or resources.
How do you skip classes for testing?How do you skip class that you do not want to test in Jtest? 1. Right Click on the Project select Properties 2. From the "Properties for <project_name>" click on Parasoft. 4. Click on Scope Settings. 6. You will see "Resources to skip: " Click on "Add" button. 5. Choose the files you do…
-
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…
-
How can I use a parameter from the SOAP response
as a parameter in a SOAP request? For example, Test 1 logs in to a service with a UserId and receives a sessionId. You can configure Test 2 to use the sessionId to perform transactions. To configure these tests: Clear the Deserialize Response checkbox in the SOAP Client panel of Test 1. Right-click the Test 1 node from the…
-
How do I perform basic authentication
in a SOAP Client? Select the SOAP Client node you would like to authenticate. Click the Transport Properties button in the SOAP Client panel. The Edit HTTP Properties dialog box displays. Click the Perform Authentication check box and make sure the Authentication Type is set to Basic. Enter the Username and Password and…
-
Can I still parameterize the Diff tool after I
create multiple regression controls?Yes, you can still parameterize the Diff tool. Just click on the Diff node and select Form XML from the Mode drop-down menu.
-
How do I diff an incoming SOAP response?
Ensure that the Deserialize Response check box is not selected in the SOAP Client. Right-click the SOAP Client node and select Add Output> Response> SOAP Envelope> New Output> Diff from the shortcut menu. An XML Response> Diff node displays in the test suite tree. Select the Response SOAP Envelope> Diff node in the test…
-
What if I have more than one Excel File?
I would like to use in a SOAP Client? Add the extra Excel files into SOAPtest as data sources. Add an Aggregate data source by completing the following: * Right-click the root Project tree node. * Choose Add New Data Source from the shortcut menu. * (Optional) Change the data source label in the Name field of the Data…
-
How do I use a data source in a SOAP Client?
Select the desired SOAP Client node from the test suite tree. Choose the appropriate data source from the Data Source drop-down menu in the right GUI panel. Note: The Data Source combo box will not display unless a data source was previously added to the test suite. If there is only one data source available, the SOAP…
-
How do I use an Excel Spreadsheet as a data source
Right-click the root Project tree node. Choose Add Data Source from the shortcut menu. (Optional) Change the data source label in the Name field of the Data Source panel. Choose Excel Spreadsheet from the Type box. (Optional) Use the Rows controls to indicate the range of rows you want to use and whether the rows can be…
-
How to import classes into a current or new proj?
Importing a class to a current project. 1. Right click on a Project that you will like to import a class. 2. select Import 3. From the Import window select File System click on Next 4. Browse to the directory which contains the class that you would like to import. 5. You will see the directory on the left frame and on the…
-
How do I clear all the Jtest errors from the views
Press the red 'X' on the Jtest Errors Found View. This will clear all the errors.
-
Different workspace during launch of Jtest
How to specify it.Jtest can be configured to use a different workspace by passing the -data tag to the Jtest executable. For example, • Windows: jtestcli.exe -data %WORKSPACE_DIR% -resource resource_to_test -config "team://Team Configuration" -publish -localsettings acme_policy.settings • UNIX: jtestcli -data…