Exemplo n.º 1
0
 def test_login_01(self):
     data = Read_csv.get_data(
         'D:\\idea-workspace\\PythonTest\\DemoTest\\Data\\login_test.csv')
     print(data[0][0])
     login.login_test(self, self.driver, data[0][0], data[0][1], data[0][2])
Exemplo n.º 2
0
 def test_login02(self):
     login.login_test(self, self.driver, "hjhy ", "lizhenghong", "111111")
Exemplo n.º 3
0
 def test_login(self, code, name, pwd):
     login.login_test(self, self.driver, code, name, pwd)
Exemplo n.º 4
0
 def test_login_01(self):
     data = Read_csv.get_data(r'Data\\login_test.csv')
     print(data[0][0])
     login.login_test(self, self.driver, data[0][0], data[0][1], data[0][2])
Exemplo n.º 5
0
 def test_search_01(self):
     data = Read_csv.get_data('D:\Idea_coad\Demo_Test\Data\login_test.csv')
     print(data[0][0])
     login.login_test(self, self.driver, "C0006", "lvliwen", "111111")
     test_agent_user_search.test_agent_user_search(self, self.driver)
Exemplo n.º 6
0
from selenium import webdriver

from Code import login
from Conf import file_out

info_url = "E://auto_data/test.csv"
#第一次使用Chrome() 新建浏览器会话
driver = webdriver.Chrome()
# 记录 executor_url 和 session_id 以便复用session
executor_url = driver.command_executor._url
session_id = driver.session_id
login.login_test(driver)  #登录
info_data = [(executor_url, session_id)]
file_out.out_data(info_url, info_data)  #将网页信息保存到文件
Exemplo n.º 7
0
 def test_search_01(self):
     data = Read_csv.get_data(
         'D:\\idea-workspace\\PythonTest\\DemoTest\\Data\\login_test.csv')
     print(data[0][0])
     login.login_test(self, self.driver, "C0006", "lvliwen", "111111")
     test_agent_user_search.test_agent_user_search(self, self.driver)