corki
16 years agoContributor
HOW TO CREATE dynamically newTestSuite, newTestCase and new TestStep in project
Hi all,
this toppic should help a LOT of people:
can I get just simple groovy code,
which will be able to create
1. - an absolutely independent new TestSuite,
2. - inside it new TestCase,
3. - and inside it, new TestStep (specialy TEST REQUEST step).
4. - mayby also new TestStep (specialy groovy Scritp with 1 line of code)
I already know how to create/remove assertions
(mayby when I am creating new assertions - Script assertion), what is the property for "code" of this assertions. like
myAssertion.name "script1";
myAssertion.code?? = " log.info('hello'); ";
Great Thank for every help.
this toppic should help a LOT of people:
can I get just simple groovy code,
which will be able to create
1. - an absolutely independent new TestSuite,
2. - inside it new TestCase,
3. - and inside it, new TestStep (specialy TEST REQUEST step).
4. - mayby also new TestStep (specialy groovy Scritp with 1 line of code)
I already know how to create/remove assertions
(mayby when I am creating new assertions - Script assertion), what is the property for "code" of this assertions. like
myAssertion.name "script1";
myAssertion.code?? = " log.info('hello'); ";
Great Thank for every help.