13.08.2013 Aufrufe

opsi-winst Handbuch

opsi-winst Handbuch

opsi-winst Handbuch

MEHR ANZEIGEN
WENIGER ANZEIGEN

Sie wollen auch ein ePaper? Erhöhen Sie die Reichweite Ihrer Titel.

YUMPU macht aus Druck-PDFs automatisch weboptimierte ePaper, die Google liebt.

<strong>opsi</strong>-<strong>winst</strong> <strong>Handbuch</strong><br />

set $CompValue$ = CompareDotSeparatedNumbers($string1$, $string2$)<br />

if ($ConstTest$ = $CompValue$)<br />

comment "passed"<br />

comment $string1$+" is equal to "+$string2$<br />

else<br />

set $TestResult$ = "not o.k."<br />

LogWarning "failed"<br />

endif<br />

set $string1$ = "1.2.31.4.5"<br />

set $string2$ = "1.2.13.4.5"<br />

set $ConstTest$ = "1"<br />

set $CompValue$ = CompareDotSeparatedNumbers($string1$, $string2$)<br />

if ($ConstTest$ = $CompValue$)<br />

comment "passed"<br />

comment $string1$+" is higher then "+$string2$<br />

else<br />

set $TestResult$ = "not o.k."<br />

LogWarning "failed"<br />

endif<br />

set $string1$ = "1.2.3.4.5"<br />

set $string2$ = "1.2.13.4.5"<br />

set $ConstTest$ = "-1"<br />

set $CompValue$ = CompareDotSeparatedNumbers($string1$, $string2$)<br />

if ($ConstTest$ = $CompValue$)<br />

comment "passed"<br />

comment $string1$+" is lower then "+$string2$<br />

else<br />

set $TestResult$ = "not o.k."<br />

LogWarning "failed"<br />

endif<br />

comment ""<br />

comment "-------------------------------------"<br />

comment "Testing: "<br />

message "CompareDotSeparatedStrings"<br />

set $string1$ = "1.a.b.c.3"<br />

set $string2$ = "1.a.b.c.3"<br />

set $ConstTest$ = "0"<br />

set $CompValue$ = CompareDotSeparatedStrings($string1$, $string2$)<br />

if ($ConstTest$ = $CompValue$)<br />

comment "passed"<br />

comment $string1$+" is equal to "+$string2$<br />

else<br />

set $TestResult$ = "not o.k."<br />

LogWarning "failed"<br />

endif<br />

liefert folgenden Log:<br />

comment: Testing:<br />

message CompareDotSeparatedNumbers<br />

Set $string1$ = "1.2.3.4.5"<br />

The value of the variable "$string1$" is now: "1.2.3.4.5"<br />

21 / 93

Hurra! Ihre Datei wurde hochgeladen und ist bereit für die Veröffentlichung.

Erfolgreich gespeichert!

Leider ist etwas schief gelaufen!