def register_trial_account(self): self.driver.go_to("localhost:%s/register/trial" % get_test_port()) registration_page = RegistrationPage(self.driver) registration_confirmation_page, email = registration_page.successful_registration_with( REGISTRATION_DATA_FOR_SUCCESSFUL_TRIAL_REGISTRATION) time.sleep(2) self.assertEquals( registration_confirmation_page.registration_success_message(), SUCCESS_MESSAGE)
def get_feed_response(self, questionnaire_code, start_date, end_date): url = get_target_test_scheme() + "://" + get_target_test_host( ) + ":" + get_test_port( ) + "/feeds/" + questionnaire_code + "?start_date=" + start_date + "&end_date=" + end_date actual_data = requests.get(url, auth=('*****@*****.**', 'tester150411')) response_list = jsonpickle.decode(actual_data.content) return response_list
def get_feed_response(self, questionnaire_code, start_date, end_date): url = "http://*****:*****@gmail.com', 'tester150411')) print actual_data.content # Added to troubleshoot failure on CI response_list = jsonpickle.decode(actual_data.content) return response_list
def url(path): full_path = "http://localhost:" + get_test_port() + path if not full_path.endswith("/"): full_path += "/" return full_path
def url(path): full_path = get_target_test_scheme() + "://" + get_target_test_host() + ":" + get_test_port() + path if not full_path.endswith("/"): full_path += "/" return full_path