2.0.0 • Published 7 years ago

testx-yaml-parser v2.0.0

Weekly downloads
301
License
ISC
Repository
-
Last release
7 years ago

Usage

In your test file (mytests/test.yaml):

- go to:
    url: /

# fill in the search box and press search
- set:
    searchBox: sample pdf files

- set:
    searchBtn: ''

# check the content of the pdf file
- check in pdf:
    link: pdfLink
    expect1: D e n t i s t s
    expect2: P o l i t i c i a n s

In your spec file (CoffeeScript):

testx = require 'testx'
yamlParser = require 'testx-yaml-parser'

describe 'Some page', ->
  it 'should work in a certain way', ->
    testx.runScript yamlParser.parseFile 'mytests/test.yaml'

Alternatively you can pass the YAML as a literal string. In CoffeeScript:

testx = require 'testx'
yamlParser = require 'testx-yaml-parser'

describe 'Some page', ->
  it 'should work in a certain way', ->
    testx.runScript yamlParser.parse """

- go to:
    url: /

# fill in the search box and press search
- set:
    searchBox: sample pdf files

- set:
    searchBtn: ''

# check the content of the pdf file
- check in pdf:
    link: pdfLink
    expect1: D e n t i s t s
    expect2: P o l i t i c i a n s    
"""
2.0.0

7 years ago

1.2.0

8 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.0

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago