Hopefully I get to bypass Lengthy User Testing with this tool
I just ran a simple test with Casper at home:
casperjs.bat firstTest.js
PASS Found an element matching: form#healthQsForm input[type=submit][
Started']
PASS Found an element matching: form#PPIForm input[name='firstName']
PASS Found an element matching: form#PPIForm input[name='lastName']
PASS 3 tests executed in 1375236441.809s, 3 passed, 0 failed.
I had 0 installs to perform.
The steps I followed were:
1. Download and extract PhantomJS for Windows (available in non Windows):
https://phantomjs.googlecode.com/files/phantomjs-1.9.1-windows.zip
non:
2. Download and extract CasperJS for Windows (available in non Windows):
https://github.com/n1k0/casperjs/zipball/1.0.0
non:
3. Install Chrome Extension Resurrectio from Chrome Store
more info:
https://github.com/ebrehault/resurrectio
https://github.com/ebrehault/resurrectio
4. I added the path variables as defined in the installation instructions for both Phantom and Casper (this in theory could be done in a batch file too).
5. I went to a website, clicked the Chrome Extension icon, and chose "GO"
6. I stepped through the desired steps (okay I only did 3 parts of a very long [350+ fields] form)
7. I clicked the Extension Icon, and selected stop recording
8. I clicked Export CasperJS
9. I selected everything onscreen (very important to not click save as you will save HTML instead of JS) and saved in a text editor (Notepad++) as firstTest.js
10. I opened my command prompt, and navigated to the saved file's directory
11. I ran the simple command casperjs.bat firstTest.js
12. The results displayed after a moment
Hope it excites you as much as it just excited me to hopefully be able to test at least the desired on screen items quickly. I did see more documentation showing where you can check for titles, and specific words on the page as well.
At work we have several web apps, with difficult customers. I hope to batch script this so users can easily go to folder, and click a bat file, have it running on their computer and then continue about their business, instead of them having to go in and test manually (which they don't do well).
0 Comments:
Post a Comment
<< Home