TT#70901 selenium: add ability to skip tests depending on ce/pro usage

It is now possible to skip tests on ce that are intended for pro
and vice versa. Applying this to the fax test, since fax settings
option is only available on pro and not on ce

Change-Id: I7e32fdd63d033d695b3a2cb60514c372c6757453
mr10.1.1
Nico Schedel 4 years ago
parent 17c082980e
commit ab7838d6a9

@ -44,6 +44,8 @@ def preparation():
del i
for customer in customers.keys():
create_subscriber(driver, customer, customers[customer])
if os.environ.get('vmtype') == None:
os.environ['vmtype'] = "CE"
driver.quit()
except Exception:
driver.save_screenshot('/results/preperation.png')
@ -266,6 +268,10 @@ class testrun(unittest.TestCase):
def test_fax_settings(self):
global customers
global filename
if os.environ.get('vmtype') == "CE":
print("Running CE, test is skipped...")
filename = 0
return True
filename = "test_fax_settings.png"
driver = self.driver
driver.get(os.environ['CATALYST_SERVER'])

Loading…
Cancel
Save