SeleniumBase/examples
Michael Mintz 11067cf1b1 Fresh Copy 2015-12-04 16:11:53 -05:00
..
ReadMe.txt Fresh Copy 2015-12-04 16:11:53 -05:00
__init__.py Fresh Copy 2015-12-04 16:11:53 -05:00
example_config.cfg Fresh Copy 2015-12-04 16:11:53 -05:00
my_first_test.py Fresh Copy 2015-12-04 16:11:53 -05:00
rate_limiting_test.py Fresh Copy 2015-12-04 16:11:53 -05:00
run_my_first_test_in_chrome.sh Fresh Copy 2015-12-04 16:11:53 -05:00
run_my_first_test_in_firefox.sh Fresh Copy 2015-12-04 16:11:53 -05:00
run_my_first_test_in_phantomjs.sh Fresh Copy 2015-12-04 16:11:53 -05:00
run_my_first_test_with_config.sh Fresh Copy 2015-12-04 16:11:53 -05:00
run_rate_limiting_test.sh Fresh Copy 2015-12-04 16:11:53 -05:00
run_test_fail_with_debug.sh Fresh Copy 2015-12-04 16:11:53 -05:00
run_test_fail_with_debug_in_firefox.sh Fresh Copy 2015-12-04 16:11:53 -05:00
run_test_fail_with_logging.sh Fresh Copy 2015-12-04 16:11:53 -05:00
run_test_fail_with_logging_in_firefox.sh Fresh Copy 2015-12-04 16:11:53 -05:00
setup.cfg Fresh Copy 2015-12-04 16:11:53 -05:00
test_fail.py Fresh Copy 2015-12-04 16:11:53 -05:00

ReadMe.txt

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

The python tests here are in nosetest format, which means that you CANNOT run them by using “python [NAME OF .PY FILE]” in the command prompt. To make running these files easy, .sh files have been created. Those contain the run commands to properly execute the python tests.

On a MAC or Unix-based system, you can execute .sh files by using ./[NAME OF .SH FILE] in a command prompt from the folder that the .sh files are located in. On a Windows-based system .bat files work the same way. You can switch the file extensions from .sh to .bat if you need to. One .bat file has been included in this folder.

You may have trouble opening .cfg files if you want to try viewing/editing them because the file extension may be unrecognized on your system. If so, use the Right-Click “Open With” option, or just drag & drop the file into a text-editing program.

If you run scripts with logging enabled, youll see two folders appear: “logs” and “archived logs”. The “logs” folder will contain log files from the most recent test run, but logs will only be created if the test run is failing. Afterwards, logs from the “logs” folder will get pushed to the “archived_logs” folder.

You may also see .pyc files appear as you run tests. Thats compiled bytecode, which is a natural result of running Python code.