def test_add_full_page_load_monitor(self): args = {'name': self.temp_str + '2', 'tag': self.temp_str, 'location_ids': '5', 'check_interval': 5, 'url': self.temp_str + '.test.com', 'timeout': 20000} res = full.add_full_page_load_monitor(**args) assert_equal(res['status'], 'ok') full.delete_full_page_load_monitor(monitor_id=res['data']['testId'])
def setUp(self): Monitis.debug = True self.temp_str = 'test_' + b2a_hex(urandom(4)).upper() # create a full page load test args = {'name': self.temp_str, 'tag': self.temp_str, 'location_ids': '5', 'check_interval': 5, 'url': self.temp_str + '.wordpress.com', 'timeout': 20000} res = full.add_full_page_load_monitor(**args) self.test_id = res['data']['testId']