TermTagger Test Integration

XMLWordPrintable

    • Type: New Feature
    • Resolution: Fixed
    • None
    • Affects Version/s: None
    • Component/s: TermTagger integration

      To test the external TermTagger component a list with specific testcases will be created. To perform automatic tests of this data again the following infrastructure is needed:

      • a test controller with a termtagger action
      • the above action reads the test TBX and one or more xml files with test-cases from a specific place
      • the test data is sent to the first configured GUI termtagger
      • the results (compared to the desired results) are listed in a nice way in the browser.
      • the URL /test/termtagger/ is accessible for a new role "admin" which is defined in TRANSLATE-516
      • The inserted termTags are expected in the same format as translate5 uses them (and converts them to from what it gets from termTagger directly).
      • Other existing tags (like normal tags or MQM-tags) are also expected in translate5 internal format.
        -The testcase-xml-files are expected in the directory /data/testcases/termTagger/ of a translate5-instance.

      The xml-test-cases have the structure as follows

       
      <?xml version="1.0" encoding="UTF-8" ?>
      <testcase name="einfacheAnführungszeichenImTerminus" creator="beo" mandatory="yes" sourceLang="de" targetLang="it" sourceStringMatch="0" targetStringMatch="0" tbxPath="relativeTbxPath.tbx"><!-- if targetStringMatch is 1, the target is only tagged with a string-match. No stemming etc. Same for sourceStringMatch -->
          <description>Ein Terminus muss erkannt werden, auch wenn er einfache Anführungszeichen enthält.</description>      
          <assertion type="assertOutputEquals"><!-- this is the name of the actual assertion-method, which does the testing -->
              <input>
                  <source>Bedarfsgerecht regelbare Ölpumpe</source> 
                  <target>Regolazione della pompa dell'olio in funzione del fabbisogno</target> 
              </input> 
              <expectedOutput> 
                  <source>Bedarfsgerecht regelbare <div class="term preferredTerm" data-tbxid="term_03_1_de_1_00005-4" title="">Ölpumpe</div></source> 
                  <target>Regolazione della <div class="term preferredTerm" data-tbxid="term_03_1_de_1_00005-4" title="">pompa dell'olio</div> in funzione del fabbisogno</target> 
              </expectedOutput> 
          </assertion> 
          <failure message="Terminus mit einfachem Anführungszeichen wurde nicht erkannt"/> 
      </testcase>
      
       

            Assignee:
            Marc Mittag [Administrator]
            Reporter:
            Thomas Lauria
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: