https://github.com/testxio/testx-google-spreadsheet-runner
Google Spreadsheet Runner for TestX
https://github.com/testxio/testx-google-spreadsheet-runner
Last synced: 9 months ago
JSON representation
Google Spreadsheet Runner for TestX
- Host: GitHub
- URL: https://github.com/testxio/testx-google-spreadsheet-runner
- Owner: testxio
- License: gpl-2.0
- Created: 2015-09-22T18:15:14.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-10-21T09:54:45.000Z (over 10 years ago)
- Last Synced: 2025-01-29T13:16:03.497Z (over 1 year ago)
- Language: CoffeeScript
- Size: 156 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# testx-google-spreadsheet-runner
Google Spreadsheet Runner for [TestX](https://github.com/greyarch/testx)
## Requirements
- [TestX](https://github.com/greyarch/testx) 1.2.0 or later
## Installation
npm i testx-google-spreadsheet-runner --save
## How to use
First of all, you need to know how to create and run a TestX test project. If you don't know how, check out the the TestX documentation.
To use test scripts from a Google spreadsheet, import the runner:
runner = require 'testx-google-spreadsheet-runner'
Then, create a normal Jasmine test and pass the id of the spreadsheet to the runner:
describe 'Google search', ->
it 'should display relevant results', ->
runner.runGoogleSpreadsheet '1xLNhRCq3BuOA2Ve7C8xRcM7VpmeCgKv4Bkyhd494T7I'
or to run only one specific sheet:
describe 'Google search', ->
it 'should display relevant results', ->
runner.runGoogleSpreadsheet '1xLNhRCq3BuOA2Ve7C8xRcM7VpmeCgKv4Bkyhd494T7I', 'Sheet2'
The following spreadsheet is used in both examples: https://docs.google.com/spreadsheets/d/1xLNhRCq3BuOA2Ve7C8xRcM7VpmeCgKv4Bkyhd494T7I.
## Caveat
Currently the runner only supports public spreadsheets as authentication is not yet implemented. Make sure your spreadsheets are public by publishing them to the web (File -> Publish to web).