[Webtest] AW: Optionale Webtests

Habbert, Michael (Key-Work) Habbert, Michael (Key-Work)" <michael.habbert@key-work.de
Thu, 12 Jul 2012 06:15:14 +0000


--_000_020D1069F2FDF64A9D99558C22CA93A206C7E6EX3officekeyworkd_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Ups, sorry folks,

It was to late to write in english ;-)

I'm working on some grails projects in my company and looking for a method =
(way of doing) to implement opitional webtests like I did in our old ANT-We=
btest-Projects.

Like:

----
<target name=3D"changing-data test" if=3D"is.staging">
  <webtest name=3D"test runs only on staging">
   <steps>
     ....
  </webtest>
</target>
----

I will configure this parameter by a loaded property-value. So I'm able to =
run some tests on staging while others are executed only against production=
.
Since we do develop tenant-aware software it could become very usefull to r=
un the tests for a specific tenent only on staging.

Thanks for all suggestions

Michael Habbert

Von: webtest-admin@lists.canoo.com [mailto:webtest-admin@lists.canoo.com] I=
m Auftrag von Habbert, Michael (Key-Work)
Gesendet: Mittwoch, 11. Juli 2012 23:37
An: webtest@lists.canoo.com
Betreff: [Webtest] Optionale Webtests

Liebe Tester, liebe Testerinnen,

ich bin gerade in verschiedenen Projekten involviert, die alle eine Anwendu=
ng entwickeln, die Multi-Tenant f=E4hig ist.

Jetzt m=F6chte ich diese Anwendung testen mit Canoo Webtest.

Dabei will ich diese Tests sowohl gegen Localhost als auch gegen andere Ser=
ver ausf=FChren (Staging|Demo|Prod).
Jetzt w=FCrde ich gerne bestimmte Tests =FCber eine Konfiguration f=FCr die=
sen Tenant<=3D>Mandanten evtl. nicht ausf=FChren.

In meinen ANT-Projekten habe ich das so gemacht:

----
<target name=3D"test" if=3D"is.staging">
....
</target>
----

Mit dem "If" konnte ich die Bedingung angeben, wann dieser Test ausgef=FChr=
t werden soll oder nicht.

Kennt jemand eine Option einen Trick in Groovy, wie ich das nachbilden kann=
?

Vielen Dank f=FCr Eure Ideen.

Michael Habbert


Michael Habbert
Key-Work Consulting GmbH | Kriegsstr. 100 | 76133 Karlsruhe | Germany | www=
.key-work.de<http://www.key-work.de>
Fon: +49-721-78203-269 | E-Mail: michael.habbert@key-work.de<mailto:michael=
.habbert@key-work.de> | Fax: +49-721-78203-10

Key-Work Consulting GmbH, Karlsruhe, HRB 108695, HRG Mannheim
Gesch=E4ftsf=FChrer: Andreas Stappert, Tobin Wotring

--_000_020D1069F2FDF64A9D99558C22CA93A206C7E6EX3officekeyworkd_
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:=
//www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Diso-8859-=
1">
<meta name=3D"Generator" content=3D"Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
	{font-family:Wingdings;
	panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
	{font-family:Wingdings;
	panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri","sans-serif";
	mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
span.E-MailFormatvorlage17
	{mso-style-type:personal;
	font-family:"Calibri","sans-serif";
	color:windowtext;}
span.E-MailFormatvorlage19
	{mso-style-type:personal-reply;
	font-family:"Calibri","sans-serif";
	color:#1F497D;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-size:10.0pt;}
@page WordSection1
	{size:612.0pt 792.0pt;
	margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=3D"DE" link=3D"blue" vlink=3D"purple">
<div class=3D"WordSection1">
<p class=3D"MsoNormal"><span style=3D"color:#1F497D">Ups, sorry folks,<o:p>=
</o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D"><o:p>&nbsp;</o:p></spa=
n></p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D">It was to late to writ=
e in english ;-)<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D"><o:p>&nbsp;</o:p></spa=
n></p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D">I&#8217;m working on s=
ome grails projects in my company and looking for a method (way of doing) t=
o implement opitional webtests like I did in our old ANT-Webtest-Projects.<=
o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D"><o:p>&nbsp;</o:p></spa=
n></p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D">Like:<o:p></o:p></span=
></p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D"><o:p>&nbsp;</o:p></spa=
n></p>
<p class=3D"MsoNormal">----<o:p></o:p></p>
<p class=3D"MsoNormal">&lt;target name=3D&quot;changing-data test&quot; if=
=3D&quot;is.staging&quot;&gt;<o:p></o:p></p>
<p class=3D"MsoNormal">&nbsp; &lt;webtest name=3D&#8220;test runs only on s=
taging&#8220;&gt;<o:p></o:p></p>
<p class=3D"MsoNormal">&nbsp;&nbsp; &lt;steps&gt;<o:p></o:p></p>
<p class=3D"MsoNormal">&nbsp;&nbsp;&nbsp;&nbsp; &#8230;.<o:p></o:p></p>
<p class=3D"MsoNormal">&nbsp; &lt;/webtest&gt;<o:p></o:p></p>
<p class=3D"MsoNormal">&lt;/target&gt;<o:p></o:p></p>
<p class=3D"MsoNormal">----<o:p></o:p></p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D"><o:p>&nbsp;</o:p></spa=
n></p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D">I will configure this =
parameter by a loaded property-value. So I&#8217;m able to run some tests o=
n staging while others are executed only against production.<o:p></o:p></sp=
an></p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D">Since we do develop te=
nant-aware software it could become very usefull to run the tests for a spe=
cific tenent only on staging.<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D"><o:p>&nbsp;</o:p></spa=
n></p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D">Thanks for all suggest=
ions<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D"><o:p>&nbsp;</o:p></spa=
n></p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D">Michael Habbert<o:p></=
o:p></span></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<div style=3D"border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm =
0cm 0cm">
<p class=3D"MsoNormal"><b><span style=3D"font-size:10.0pt;font-family:&quot=
;Tahoma&quot;,&quot;sans-serif&quot;;mso-fareast-language:DE">Von:</span></=
b><span style=3D"font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans=
-serif&quot;;mso-fareast-language:DE"> webtest-admin@lists.canoo.com [mailt=
o:webtest-admin@lists.canoo.com]
<b>Im Auftrag von </b>Habbert, Michael (Key-Work)<br>
<b>Gesendet:</b> Mittwoch, 11. Juli 2012 23:37<br>
<b>An:</b> webtest@lists.canoo.com<br>
<b>Betreff:</b> [Webtest] Optionale Webtests<o:p></o:p></span></p>
</div>
</div>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">Liebe Tester, liebe Testerinnen,<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">ich bin gerade in verschiedenen Projekten involviert=
, die alle eine Anwendung entwickeln, die Multi-Tenant f=E4hig ist.<o:p></o=
:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">Jetzt m=F6chte ich diese Anwendung testen mit Canoo =
Webtest.<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">Dabei will ich diese Tests sowohl gegen Localhost al=
s auch gegen andere Server ausf=FChren (Staging|Demo|Prod).<o:p></o:p></p>
<p class=3D"MsoNormal">Jetzt w=FCrde ich gerne bestimmte Tests =FCber eine =
Konfiguration f=FCr diesen Tenant<span style=3D"font-family:Wingdings">=F3<=
/span>Mandanten evtl. nicht ausf=FChren.<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">In meinen ANT-Projekten habe ich das so gemacht:<o:p=
></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">----<o:p></o:p></p>
<p class=3D"MsoNormal">&lt;target name=3D&quot;test&quot; if=3D&quot;is.sta=
ging&quot;&gt;<o:p></o:p></p>
<p class=3D"MsoNormal">&#8230;.<o:p></o:p></p>
<p class=3D"MsoNormal">&lt;/target&gt;<o:p></o:p></p>
<p class=3D"MsoNormal">----<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">Mit dem &#8220;If&#8220; konnte ich die Bedingung an=
geben, wann dieser Test ausgef=FChrt werden soll oder nicht.<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">Kennt jemand eine Option einen Trick in Groovy, wie =
ich das nachbilden kann?<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">Vielen Dank f=FCr Eure Ideen.<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">Michael Habbert<o:p></o:p></p>
<div>
<p class=3D"MsoNormal"><span style=3D"color:navy">&nbsp;<br>
&nbsp;<br>
<strong><span style=3D"font-family:&quot;Calibri&quot;,&quot;sans-serif&quo=
t;">Michael Habbert</span></strong>
<br>
Key-Work Consulting GmbH | Kriegsstr. 100 | 76133 Karlsruhe | Germany | <a =
href=3D"http://www.key-work.de" target=3D"_blank" title=3D"Key-Work Consult=
ing GmbH">
www.key-work.de</a><br>
Fon: &#43;49-721-78203-269 | E-Mail: <a href=3D"mailto:michael.habbert@key-=
work.de">michael.habbert@key-work.de</a> | Fax: &#43;49-721-78203-10
<br>
&nbsp;<br>
Key-Work Consulting GmbH, Karlsruhe, HRB 108695, HRG Mannheim<br>
Gesch=E4ftsf=FChrer: Andreas Stappert, Tobin Wotring </span><o:p></o:p></p>
</div>
</div>
</body>
</html>

--_000_020D1069F2FDF64A9D99558C22CA93A206C7E6EX3officekeyworkd_--