Test Musterbogen
Aus BogenWiki
(Unterschied zwischen Versionen)
Nugman (Diskussion | Beiträge) |
Nugman (Diskussion | Beiträge) |
||
(Der Versionsvergleich bezieht 10 dazwischenliegende Versionen mit ein.) | |||
Zeile 15: | Zeile 15: | ||
</td> | </td> | ||
<td> | <td> | ||
- | <select id="BGF.MB.Tests" name=" | + | <select id="BGF.MB.Tests" name="Tests"> |
<option value="BGF_Number.ctor">BGF_Number.ctor</option> | <option value="BGF_Number.ctor">BGF_Number.ctor</option> | ||
- | <option value="BGF_Number. | + | <option value="BGF_Number.GetValueAs">BGF_Number.GetValueAs()</option> |
+ | <option value="BGF_Number.ConvertTo">BGF_Number.ConvertTo()</option> | ||
</select> | </select> | ||
</td> | </td> | ||
Zeile 58: | Zeile 59: | ||
<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> | ||
Zeile 67: | Zeile 65: | ||
<tr style="background:#F8F8F8;" valign=top> | <tr style="background:#F8F8F8;" valign=top> | ||
<td style="padding:2px 6px 1px 6px"><tt>%%Code%%</tt></td> | <td style="padding:2px 6px 1px 6px"><tt>%%Code%%</tt></td> | ||
- | <td style="padding:2px 6px 1px 6px">%% | + | <td style="padding:2px 6px 1px 6px">%%Variables%%</td> |
- | + | ||
- | + | ||
- | + | ||
<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="ValueOK">%%Value%%</template> | + | <template id="HashBegin">{</template> |
- | <template id="ValueKO"><span style="color:red">%%Value%%</span | + | <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 126: | 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%%) | ||||||
|