1.0.0-beta-005 • Published 3 years ago

cuebot-web v1.0.0-beta-005

Weekly downloads
3
License
MIT
Repository
github
Last release
3 years ago

cuebot-web

Cuebot-web (CucumberJS for Web Application) is a test automation tool wraps CucumberJS Client

  • Gherkin format testcases
  • Presentable HTML Test Reports
  • Interactive console activity logger

Requirements

Installation

NVM and NodeJ installation on Ubuntu

To install NVM, just follow the following shell scripts

$ sudo apt-get upgrade
$ wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
$ export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"

To test if you successfully installed the NVM, get the NMV version by executing the following:

$  nvm version
#1.1.7

After installing the NVM, you can now install the NodeJS using NVM by executing the following command on terminal.

$ nvm install node

To check if you successfully installed the nodejs, just get the version of nodejs by executing this on terminal.

$ node --version
#v14.5.0

To install specific node version just execute the following ( e.g. v13.12.0 )

$ nvm install v.13.12.0

And finally, to use the specific nodeJS version execute the following script ( e.g. v13.12.0 )

$ nvm use v.13.12.0

NVM and NodeJS installation on Windows

Follow the following steps fopr NMV installation on Windows.

  1. Download the latest nvm-setup.zip on NVM Releases page.
  2. Go into the downloaded zip file on your computer and double click the installer.
  3. Continue through all of the prompts. Then, click install.

To check that Node Version Manager actually installed open Command Prompt run the following command.

c:\nvm version
1.17

To install the latest version of NodeJS using NVM:

c:\ nvm install latest

To install a specific version of NodeJS using NVM (e.g. v13.12.0):

c:\ nvm install 13.12.0

To use specific version of NodeJS using NVM (e.g. v13.12.0):

c:\ nvm use 13.12.0

To see available version of NodeJS from your NVM:

c:\ nvm list

Initial Setup for cuebot-web

Create you project folder and create initial package file:

 mkdir myproject
 cd myproject
 npm init -y

Now download and install latest cuebot-web

 npm install cuebot-web@latest

To create and initialize sample project, execute the following command

 node_modules\.bin\cuebot-web --init

To run the sample project and display the test report, execute the following command

 node_modules\.bin\cuebot-web --exec

How to create the test script ???

By checking the initial feature file (sample.feature under feature folder) and using the available keyword implementations, You can get immediately get the idea on how easy to create your next test scenario ( please open the sample.feature file on your favorite IDE app )

#sample.feature
@cuebot
Feature: My Sample Feature
	As Automation engineer
	I want to verify that all functionality are working as they should

	@sample
	Scenario: My Sample Scenario
		Given my search keyword is 'YouTube'
		When I search the keyword on Google
		Then I can see keyword 'YouTube' on search result page

Final Thoughts

Just follow the given sample feature format, and you're done!!
Happy Automating!!!