Przeprowadzam testy testowe selenem za pomocą programu Proboscis, w celu dobrego raportowania wyników testu. Mam następujący przypadek testowy napisany:Wyjątek w złym stanie linii podczas otwierania strony na serwerze deweloperskim django
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from proboscis import test
import unittest
driver = webdriver.Firefox()
@test(groups=["unit","login"])
class UI_test(unittest.TestCase):
def test_SuccessfulErrorMsgOnEmptyUserName(self):
driver.get("http://127.0.0.1:7999/login/")
username_input = driver.find_element_by_id("id_email")
username_input.send_keys('')
password_input = driver.find_element_by_id("id_password")
password_input.send_keys('bill3')
driver.find_element_by_xpath('//input[@value = "Log In"]').click()
driver.implicitly_wait(3)
driver.find_element_by_class_name("error-login")
driver.close()
def run_tests():
from proboscis import TestProgram
# from tests import unit
# Run Proboscis and exit.
TestProgram().run_and_exit()
if __name__ == '__main__':
run_tests()
Co może być przyczyną wyjątku BadStatusLine
w tym kodzie?
proszę zaksięgować pełny zwrot pieniędzy – micgeronimo
dobre pytanie nie wiesz – user299709
spróbuj zrobić to samo w przeglądarce. Wystąpił problem z prawidłową odpowiedzią http://127.0.0.1:7999/login. –