コード例 #1
0
 def test_multi_suite(self):
     data = TestSuiteFactory([
         join(DATADIR, 'normal.robot'),
         join(DATADIR, 'pass_and_fail.robot')
     ])
     suite = JsonConverter().convert(data)
     test_convert(suite,
                  source='',
                  relativeSource='',
                  id='s1',
                  name='Normal & Pass And Fail',
                  fullName='Normal & Pass And Fail',
                  doc='',
                  metadata=[],
                  numberOfTests=4,
                  keywords=[],
                  tests=[])
     test_convert(suite['suites'][0],
                  source=normpath(join(DATADIR, 'normal.robot')),
                  relativeSource='',
                  id='s1-s1',
                  name='Normal',
                  fullName='Normal & Pass And Fail.Normal',
                  doc='<p>Normal test cases</p>',
                  metadata=[('Something', '<p>My Value</p>')],
                  numberOfTests=2)
     test_convert(suite['suites'][1],
                  source=normpath(join(DATADIR, 'pass_and_fail.robot')),
                  relativeSource='',
                  id='s1-s2',
                  name='Pass And Fail',
                  fullName='Normal &amp; Pass And Fail.Pass And Fail',
                  doc='<p>Some tests here</p>',
                  metadata=[],
                  numberOfTests=2)
コード例 #2
0
 def setUp(self):
     if not self.suite:
         suite = TestSuiteFactory(DATADIR,
                                  doc='My doc',
                                  metadata=['abc:123', '1:2'])
         output = join(DATADIR, '..', 'output.html')
         self.__class__.suite = JsonConverter(output).convert(suite)
コード例 #3
0
 def setUp(self):
     if not self.suite:
         suite = TestSuiteFactory(join(DATADIR,
                                       'formatting_and_escaping.robot'),
                                  name='<suite>',
                                  metadata=['CLI>:*bold*'])
         self.__class__.suite = JsonConverter().convert(suite)
コード例 #4
0
 def setUpClass(cls):
     suite = TestSuiteFactory(DATADIR,
                              doc='My doc',
                              metadata=['abc:123', '1:2'])
     output = join(DATADIR, '..', 'output.html')
     cls.suite = JsonConverter(output).convert(suite)