Persönliche Werkzeuge

Test Musterbogen

Aus BogenWiki

(Unterschied zwischen Versionen)
Wechseln zu: Navigation, Suche
 
(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>
-
             </html>{{Button|Caption=MB-Types |ID=BGF.MB.TestMBTypes |OnEvent=BtnPageEvent}}<html>&nbsp;&nbsp;
+
             <table style="background:transparent;" cellspacing=1 cellpadding=4>
-
            </html>{{Button|Caption=Test 2 |ID=BGF.MB.Test2 |OnEvent=BtnPageEvent}}<html>
+
              <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>&nbsp;&nbsp;{{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:60vh;"></div>
+
             <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.%%TCName%%.Create.div" style="width:100%;border:0px solid silver;margin:0px 0px 4px 0px;">
+
   <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;" width=100% cellspacing=1 cellpadding=4>
+
     <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>Name</b></td>
+
               <td style="padding:2px 6px 1px 6px"><b>Variables</b></td>
-
              <td style="padding:2px 6px 1px 6px"><b>Value</b></td>
+
-
              <td style="padding:2px 6px 1px 6px"><b>Unit</b></td>
+
-
              <td style="padding:2px 6px 1px 6px"><b>DPI</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">%%Code%%</td>
+
               <td style="padding:2px 6px 1px 6px"><tt>%%Code%%</tt></td>
-
              <td style="padding:2px 6px 1px 6px">%%BGF_Number_Name%%</td>
+
               <td style="padding:2px 6px 1px 6px">%%Variables%%</td>
-
              <td style="padding:2px 6px 1px 6px">%%BGF_Number_Value%%</td>
+
-
              <td style="padding:2px 6px 1px 6px">%%BGF_Number_Unit%%</td>
+
-
               <td style="padding:2px 6px 1px 6px">%%BGF_Number_DPI%%</td>
+
               <td style="padding:2px 6px 1px 6px">%%Result%%</td>
               <td style="padding:2px 6px 1px 6px">%%Result%%</td>
-
            </tr>
 
-
            <template id="BodyError"></template>
 
-
            <tr style="background:#F8F8F8;" valign=top>
 
-
              <td style="padding:2px 6px 1px 6px" rowspan=2>%%Code%%</td>
 
-
              <td style="padding:2px 6px 1px 6px">%%BGF_Number_Name%%</td>
 
-
              <td style="padding:2px 6px 1px 6px">%%BGF_Number_Value%%</td>
 
-
              <td style="padding:2px 6px 1px 6px">%%BGF_Number_Unit%%</td>
 
-
              <td style="padding:2px 6px 1px 6px">%%BGF_Number_DPI%%</td>
 
-
              <td style="padding:2px 6px 1px 6px" rowspan=2>%%Result%%</td>
 
-
            </tr>
 
-
            <tr style="background:#F8F8F8;" valign=top>
 
-
              <td style="padding:2px 6px 1px 6px" colspan=4>%%BGF_Number_Error%%</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     = eElement.id;
+
   var sElementID = eElement.id;
   switch (sElementID) {
   switch (sElementID) {
-
     case 'BGF.MB.TestMBTypes': ExecTests(); break;
+
     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

Tests
Testcases:   
Run
Output