Create a development pipeline using browserstack as the hosted selenium. The pipeline requirements include: deployment in a Jenkins CI pipeline, 3 assertions in test scripts, and 5 different browsers to test against.
In this pipeline I will be testing the Tech Kid News application and the new text box I just added to the page.
Link to test application: Tech Kid News
* check the title of the application is "Tech Kid News"
* check that the input text box is visible
* check that the text rendered to the screen contains the text from the input text box
Browser | OS |
---|---|
Firefox | Mac Catalina |
Firefox | Windows 10 |
Chrome | Mac Catalina |
Chrome | Windows 10 |
Edge | Windows 10 |
tests/remote/homepage.js
conf/multiple.conf.js
images/test-output.txt
Jenkinsfile location: Jenkinsfile
Jenkins screenshot location: images/
To run the tests locally without jenkins use the following command:
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
Launches tests against Browserstack
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
See the section about deployment for more information.