Skip to content

Commit

Permalink
added tests
Browse files Browse the repository at this point in the history
  • Loading branch information
greyarch committed Feb 9, 2016
1 parent 405c28e commit 4cae202
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 0 deletions.
1 change: 1 addition & 0 deletions .npmignore
@@ -0,0 +1 @@
tests
29 changes: 29 additions & 0 deletions tests/conf.coffee
@@ -0,0 +1,29 @@
testx = require '../'

exports.config =
directConnect: true
specs: ['spec/spec*']

capabilities:
browserName: 'chrome'
shardTestFiles: false
maxInstances: 5


framework: 'jasmine'
jasmineNodeOpts:
silent: true
defaultTimeoutInterval: 300000
includeStackTrace: false

baseUrl: 'http://google.com'
rootElement: 'html' # change to the root element of the angular.js app

params:
testx:
logScript: false
actionTimeout: 4000

onPrepare: ->
testx.objects.add 'tests/objects.csv'
beforeEach -> browser.ignoreSynchronization = true
4 changes: 4 additions & 0 deletions tests/objects.csv
@@ -0,0 +1,4 @@
resultLink,css,h3.r a
searchBox,css,input[name='q']
searchBtn,css,button[name='btnG']
luckyBtn,css,button[name='btnI']
6 changes: 6 additions & 0 deletions tests/spec/spec.coffee
@@ -0,0 +1,6 @@
runner = require '../../'

describe 'Google search 1', ->
it 'should display relevant results 11', ->
runner.runExcelSheet 'tests/xls/sample.xlsx', 'Test',
foreignMatch: 'New York'
1 change: 1 addition & 0 deletions tests/xls/.~lock.sample.xlsx#
@@ -0,0 +1 @@
gantcho ,gakoj,doge,09.02.2016 15:39,file:///home/gakoj/.config/libreoffice/4;
Binary file added tests/xls/sample.xlsx
Binary file not shown.

0 comments on commit 4cae202

Please sign in to comment.