Skip to content

Commit

Permalink
updates for TestBox and readability
Browse files Browse the repository at this point in the history
  • Loading branch information
lmajano committed Jul 13, 2015
1 parent 3dc9fe7 commit e2ba0b4
Show file tree
Hide file tree
Showing 29 changed files with 1,628 additions and 2,529 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -3,3 +3,5 @@
.settings/
settings.xml
Selenium-RC/"
testbox
tests/results
28 changes: 28 additions & 0 deletions BaseSpec.cfc
@@ -0,0 +1,28 @@
/**
* Base Selenium based testing
* Please make sure you call the `beforeAll()` method with the appropriate `browserURL` and `browser` arguments
* The `beforeAll()` method will place an instance of the CFSelenium CFC in the `variables` scope as `selenium`
*/
component extends="testbox.system.BaseSpec"{

/*********************************** LIFE CYCLE Methods ***********************************/

/**
* Please note the two arguments to get a selenium server started
* @browserURL The base URL of the application to test.
* @browser The browser to run the tests, defaults to *firefox
*/
function beforeAll( required browserURL, browser="*firefox" ){
// create Selenium class
variables.selenium = new cfselenium.Selenium();
// Start it up.
variables.selenium.start( arguments.browserURL, arguments.browser );
}

// executes after all suites+specs in the run() method
function afterAll(){
variables.selenium.stop();
variables.selenium.stopServer()
}

}
19 changes: 0 additions & 19 deletions CFSeleniumTestCase.cfc

This file was deleted.

20 changes: 0 additions & 20 deletions CFSeleniumTestCase_Tags.cfc

This file was deleted.

Binary file not shown.
84 changes: 84 additions & 0 deletions box.json
@@ -0,0 +1,84 @@
{
"name":"CFSelenium",
"version":"2.0.0",
"author":"Ortus Solutions, Corp",
"homepage":"https://github.com/Ortus-Solutions/CFSelenium",
"documentation":"https://github.com/Ortus-Solutions/CFSelenium/wiki",
"repository":{
"type":"git",
"url":"https://github.com/Ortus-Solutions/CFSelenium.git"
},
"bugs":"https://github.com/Ortus-Solutions/CFSelenium/issues",
"slug":"cfselenium",
"shortDescription":"CFSelenium provides a native client library for Selenium-RC",
"description":"CFSelenium is a ColdFusion Component (CFC) which provides a native client library for Selenium-RC. This allows you to write tests, using CFML, which will drive a browser and verify results via Selenium-RC.",
"type":"projects",
"keywords":[
"cfselenium",
"testing",
"selenium"
],
"engines":[
{
"type":"lucee",
"version":">=4.5.x"
},
{
"type":"adobe",
"version":">=10"
}
],
"projectURL":"https://github.com/Ortus-Solutions/CFSelenium",
"license":[
{
"type":"Apache2",
"url":"http://www.apache.org/licenses/LICENSE-2.0"
}
],
"contributors":[

],
"dependencies":{

},
"devDependencies":{
"testbox":"2.0.0"
},
"installPaths":{
"testbox":"testbox"
},
"ignore":[
"**/.*",
"test",
"tests"
],
"testbox":{
"runner":[
{
"default":""
}
],
"labels":[

],
"reporter":"",
"reporterResults":"",
"bundles":[
""
],
"directory":{
"mapping":"",
"recurse":true
},
"watchers":[

],
"notify":{
"emails":[

],
"growl":"",
"url":""
}
}
}

0 comments on commit e2ba0b4

Please sign in to comment.