Contact Us
About Us
News
Home
Main Menu
Home
Eviware Store
Downloads
Products
News
Forum
Eviware Blog
Search
FAQs
Customer Area
Support
Documentation
Tutorials
CookBook
Downloads
Forum
Login Form
Welcome,
Guest
. Please
login
or
register
.
November 21, 2008, 08:09:33 am
Username:
Password:
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Forgot your password?
How to share data between Test Cases belonging to the same Test Suite
Welcome,
Guest
. Please
login
or
register
.
November 21, 2008, 08:09:33 am
News:
The Forums are up! Welcome to eviware.
Eviware Forum
soapUI
soapUI
How to share data between Test Cases belonging to the same Test Suite
« previous
next »
Pages:
[
1
]
Author
Topic: How to share data between Test Cases belonging to the same Test Suite (Read 372 times)
mermet
Newbie
Posts: 16
How to share data between Test Cases belonging to the same Test Suite
«
on:
December 07, 2007, 07:02:47 pm »
Hi, I want to share data between all Test Cases that are in my Test Suite.
I just found out that the scope of Context properties are only for the Test Case.
Properties can be read from file (or Database I suppose), but I want to share pre-processed data between Test Cases. Not only data directly accessed from a File.
For instance my Test Suite includes an initialisation Test Case that is responsible to prepare some list (or even things like myXML). I want to have those data to be available for each Test Case so they can be used in Groovy script to set the requests for instance.
How can this be achieved ?
Thanks a lot.
Logged
omatzura
Administrator
Hero Member
Posts: 1,420
Re: How to share data between Test Cases belonging to the same Test Suite
«
Reply #1 on:
December 07, 2007, 08:24:55 pm »
Hi mermet,
this is what TestSuite properties are for.. you first TestCase should write the desired value to corresponding TestSuites properties and the following TestCases can read the values from there..
ie do the following:
1) Define the desired properties at the TestSuite level in the TestSuite editor
2) Write the desired values to these properties in your first TestCase, either using a PropertyTransfer or a groovy script;
testRunner.testCase.testSuite.setPropertyValue( .., .. )
3) access these properties in your following testcases with property-transfers, property-expansion or a groovy script..
Hope this makes sense / helps!
regards,
/Ole
eviware.com
Logged
mermet
Newbie
Posts: 16
Re: How to share data between Test Cases belonging to the same Test Suite
«
Reply #2 on:
December 10, 2007, 10:46:49 am »
Thanks a lot. Makes a great sense, but I can't find the way to define new Test Suite Properties. I can see the Test Suite properties pane, but it seems to be read only
(there is a single property which is the name of the Test Suite).
The Test Suite Editor does not provide any facility either to create new properties.
I have soapUI Pro v.1.7.6.
Sorry but I'm very frustrated !
Logged
mermet
Newbie
Posts: 16
Re: How to share data between Test Cases belonging to the same Test Suite
«
Reply #3 on:
December 10, 2007, 04:25:08 pm »
Found them in version 2.0 beta2 !
Logged
Pages:
[
1
]
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> eviware general
-----------------------------
soapUI
-----------------------------
=> soapUI
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Powered by SMF 1.1.2
|
SMF © 2006-2007, Simple Machines LLC
Loading...