Test Musterbogen
Aus BogenWiki
(Unterschied zwischen Versionen)
Nugman (Diskussion | Beiträge) |
Nugman (Diskussion | Beiträge) |
||
(Der Versionsvergleich bezieht 29 dazwischenliegende Versionen mit ein.) | |||
Zeile 9: | Zeile 9: | ||
<tr style="background:#F8F8F8;" valign=top> | <tr style="background:#F8F8F8;" valign=top> | ||
<td> | <td> | ||
- | </ | + | <table style="background:transparent;" cellspacing=1 cellpadding=4> |
- | + | <tr valign=center> | |
+ | <td> | ||
+ | Testcases: | ||
+ | </td> | ||
+ | <td> | ||
+ | <select id="BGF.MB.Tests" name="Tests"> | ||
+ | <option value="BGF_Number.ctor">BGF_Number.ctor</option> | ||
+ | <option value="BGF_Number.GetValueAs">BGF_Number.GetValueAs()</option> | ||
+ | <option value="BGF_Number.ConvertTo">BGF_Number.ConvertTo()</option> | ||
+ | </select> | ||
+ | </td> | ||
+ | <td> | ||
+ | </html> {{Button|Caption=Run |ID=BGF.MB.RunTest |OnEvent=BtnPageEvent}}<html> | ||
+ | </td> | ||
+ | </tr> | ||
+ | </table> | ||
</td> | </td> | ||
</tr> | </tr> | ||
Zeile 24: | Zeile 39: | ||
<tr style="background:#F8F8F8;" valign=top> | <tr style="background:#F8F8F8;" valign=top> | ||
<td> | <td> | ||
- | <div id="BGF.MB.Output" style="width:100%;height: | + | <div id="BGF.MB.Output" style="width:100%;overflow:auto;height:75vh;"></div> |
</td> | </td> | ||
</tr> | </tr> | ||
Zeile 33: | Zeile 48: | ||
<template id="BGF.MB.Test.Output.Template"> | <template id="BGF.MB.Test.Output.Template"> | ||
<template id="Head"></template> | <template id="Head"></template> | ||
- | <div id="BGF.MB.Test.%% | + | <div id="BGF.MB.Test.%%BGFType%%.%%Method%%.%%Name%%.Create.div" style="width:100%;border:0px solid silver;margin:6px 0px 12px 4px;"> |
- | <table style="background:silver;" | + | <table style="background:silver;" cellspacing=1 cellpadding=4> |
<tr style="background:#E0E0E0;" valign=top> | <tr style="background:#E0E0E0;" valign=top> | ||
- | <td style="padding:2px 6px 1px 6px">Test: %%TCTitle%%</td> | + | <td style="padding:2px 6px 1px 6px">Test: <b>%%TCTitle%%</b> (%%BGFType%%.%%Method%%.%%Name%%)</td> |
</tr> | </tr> | ||
<tr style="background:#F8F8F8;" valign=top> | <tr style="background:#F8F8F8;" valign=top> | ||
<td> | <td> | ||
<table style="background:silver;" width=100% cellspacing=1 cellpadding=4> | <table style="background:silver;" width=100% cellspacing=1 cellpadding=4> | ||
+ | <template id="TabHead"></template> | ||
<tr style="background:#E0E0E0;" valign=top> | <tr style="background:#E0E0E0;" valign=top> | ||
<td style="padding:2px 6px 1px 6px"><b>Code</b></td> | <td style="padding:2px 6px 1px 6px"><b>Code</b></td> | ||
- | <td style="padding:2px 6px 1px 6px"><b> | + | <td style="padding:2px 6px 1px 6px"><b>Variables</b></td> |
- | + | ||
- | + | ||
- | + | ||
<td style="padding:2px 6px 1px 6px"><b>Result</b></td> | <td style="padding:2px 6px 1px 6px"><b>Result</b></td> | ||
</tr> | </tr> | ||
<template id="Body"></template> | <template id="Body"></template> | ||
<tr style="background:#F8F8F8;" valign=top> | <tr style="background:#F8F8F8;" valign=top> | ||
- | <td style="padding:2px 6px 1px 6px"> | + | <td style="padding:2px 6px 1px 6px"><tt>%%Code%%</tt></td> |
- | + | <td style="padding:2px 6px 1px 6px">%%Variables%%</td> | |
- | + | ||
- | + | ||
- | <td style="padding:2px 6px 1px 6px">%% | + | |
<td style="padding:2px 6px 1px 6px">%%Result%%</td> | <td style="padding:2px 6px 1px 6px">%%Result%%</td> | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
</tr> | </tr> | ||
<template id="ResOK"><span style="color:green"><b>OK</b></span></template> | <template id="ResOK"><span style="color:green"><b>OK</b></span></template> | ||
<template id="ResKO"><span style="color:red"><b>failed</b></span></template> | <template id="ResKO"><span style="color:red"><b>failed</b></span></template> | ||
+ | <template id="HashBegin">{</template> | ||
+ | <template id="HashNext">, </template> | ||
+ | <template id="HashEnd">}</template> | ||
+ | <template id="ValueOK">%%VarName%%: %%Value%%</template> | ||
+ | <template id="ValueKO">%%VarName%%: <span style="color:red">%%Value%%</span> <span style="color:green">(%%ValueExp%%)</span></template> | ||
+ | <template id="ValueKO1"><span style="color:red">%%Value%%</span></template> | ||
<template id="Foot"></template> | <template id="Foot"></template> | ||
</table> | </table> | ||
Zeile 88: | Zeile 92: | ||
{ | { | ||
console.log('[MGF_MB_OnClick] eElement.id='+eElement.id); | console.log('[MGF_MB_OnClick] eElement.id='+eElement.id); | ||
- | var sElementID | + | var sElementID = eElement.id; |
switch (sElementID) { | switch (sElementID) { | ||
- | case 'BGF.MB. | + | case 'BGF.MB.RunTest': |
+ | var sSelectedTest = document.getElementById('BGF.MB.Tests').value; | ||
+ | console.log('sSelectedTest = '+sSelectedTest); | ||
+ | var [sClass,sMethod] = sSelectedTest.split('.'); | ||
+ | ExecTests(sClass,sMethod); | ||
+ | break; | ||
} | } | ||
} | } |
Aktuelle Version vom 07:36, 3. Jul. 2024
|
|||||
|
Test: %%TCTitle%% (%%BGFType%%.%%Method%%.%%Name%%) | ||||||
|