示例#1
0
    def __init__(self):
        BaseTarget.__init__(self)
        global target_args
        target_args = self.get_target_args()
        self.target_name = "Firefox"
        self.process_list = []
        self.cc_settings = [
            {
                "name":
                "firefox",
                "type":
                "list",
                "label":
                "Firefox",
                "value":
                ["local", "latest", "latest-esr", "latest-beta", "nightly"],
                "default":
                "beta",
            },
            {
                "name": "locale",
                "type": "list",
                "label": "Locale",
                "value": OSHelper.LOCALES,
                "default": "en-US"
            },
            {
                "name": "max_tries",
                "type": "list",
                "label": "Maximum tries per test",
                "value": ["1", "2", "3", "4", "5"],
                "default": "3",
            },
            {
                "name": "highlight",
                "type": "checkbox",
                "label": "Debug using highlighting"
            },
            {
                "name": "override",
                "type": "checkbox",
                "label": "Run disabled tests"
            },
            {
                "name": "email",
                "type": "checkbox",
                "label": "Email results"
            },
            {
                "name": "report",
                "type": "checkbox",
                "label": "Create TestRail report"
            },
        ]

        self.local_web_root = os.path.join(PathManager.get_module_dir(),
                                           "targets", "firefox", "local_web")
        if target_args.treeherder:
            Settings.debug_image = False
示例#2
0
 def __init__(self):
     BaseTarget.__init__(self)
     global target_args
     target_args = self.get_target_args()
     self.target_name = 'Nightly'
     self.process_list = []
     self.cc_settings = [{
         'name': 'nightly',
         'type': 'list',
         'label': 'Nightly',
         'value': ['local', 'latest', 'nightly'],
         'default': 'nightly'
     }, {
         'name': 'locale',
         'type': 'list',
         'label': 'Locale',
         'value': OSHelper.LOCALES,
         'default': 'en-US'
     }, {
         'name': 'max_tries',
         'type': 'list',
         'label': 'Maximum tries per test',
         'value': ['1', '2', '3', '4', '5'],
         'default': '3'
     }, {
         'name': 'highlight',
         'type': 'checkbox',
         'label': 'Debug using highlighting'
     }, {
         'name': 'override',
         'type': 'checkbox',
         'label': 'Run disabled tests'
     }, {
         'name': 'email',
         'type': 'checkbox',
         'label': 'Email results'
     }, {
         'name': 'report',
         'type': 'checkbox',
         'label': 'Create TestRail report'
     }]
     self.local_web_root = os.path.join(PathManager.get_module_dir(),
                                        'targets', 'firefox', 'local_web')
     if target_args.treeherder:
         Settings.debug_image = False