https://github.com/sdesalas/phantom-testrunner
PhantomJS testrunner for the Paranoid IDE
https://github.com/sdesalas/phantom-testrunner
Last synced: about 2 months ago
JSON representation
PhantomJS testrunner for the Paranoid IDE
- Host: GitHub
- URL: https://github.com/sdesalas/phantom-testrunner
- Owner: sdesalas
- License: gpl-3.0
- Created: 2016-11-03T02:56:07.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-11-03T03:11:21.000Z (over 8 years ago)
- Last Synced: 2025-01-22T15:11:17.016Z (4 months ago)
- Language: Batchfile
- Size: 6.71 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Phantom Test Runner
-------Another PhantonJS Test Runner
Create 1.Login.test
TEST "Log into Bobs hardware"
-- INITIALIZE
SET @username_box = "#login input[name=username]"
SET @password_box = "#login input[name=password]"
SET @login_button = "#login input[type=submit]"
SET @home_button = "nav > ul > li:nth-child(1)"
SET @welcome_message = "div#wrapper H3.welcome"
-- COMMENCE TESTS
GO TO @url
TAKE SCREENSHOT
CLICK @username_box AND WRITE @user
CLICK @password_box AND WRITE @password
TAKE SCREENSHOT
CLICK @login_button
CHECK @home_button EXISTS
CHECK @welcome_message TEXT CONTAINS "Welcome Bob"In windows:
run.bat tests\1.Login.test @url=http://dev.bobs-hardware.com/admin @user=bob @password=secret
In OSX:.\run.sh tests\1.Login.test @url=http://dev.bobs-hardware.com/admin @user=bob @password=secret
This will trigger off the test scenario using PhantomJS