BUG352-NEIL2 #68
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "BUG352-NEIL2"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
Added the test script.
Created by Hui on behalf of Neil.
@ -0,0 +18,4 @@f'mysql -u root -p{PASSWORD} -e "DROP DATABASE IF EXISTS {DB_NAME};"',f'mysql -u root -p{PASSWORD} -e "CREATE DATABASE {DB_NAME};"',f'mysql -u root -p{PASSWORD} -e "GRANT ALL PRIVILEGES ON {DB_NAME}.* TO lrr@localhost WITH GRANT OPTION;"',f'mysql -u root -p{PASSWORD} {DB_NAME} < C:\\xampp\\htdocs\\LRR\\lrr_database.sql'] #make sure th link of the database is ok@neil
Will the absolute path
C:\\xampp\\htdocs\\LRR\\lrr_database.sqlwork for other people?yes sir , it is the standard path @all could use.
@ -104,22 +105,22 @@ def test_generate_password():driver_open = webdriver.Chrome()@neil
conftest.py already provides a fixture called
driver, so use that fixture instead of making a new one throughwebdriver.Chrome()@ -27,3 +28,3 @@def login_lecturer(drivers):# Open the websitedrivers.get("http://localhost/lrr/")drivers.get("http://localhost/LRR/")@neil
Should use the fixture
urldefined in conftest.py.ok i change it
@ -49,3 +50,3 @@time.sleep(25)time.sleep(15)def test_createTA():@neil
Fixtures like
url, driver, restore_databasedefined in conftest.py should be used as arguments fortest_createTA().ok i change that
@neil
No assert statement in test functions?
ok
Pull request closed