Skip to content

Automation of computer database and JavaScript alerts

Notifications You must be signed in to change notification settings

ShaliniWadhera/Automation

Repository files navigation

Manual Tests

Manual Testing folder contains 2 spreadsheets for the test cases:

  1. Computer Database Test Cases.xlsx
  2. Java Script Alerts Test Cases.xlsx

Bugs

Find the bugs logged in Bugs.xlsx and the corresponding screenshot in BugJsAlerts.docx and BugComputerDatabase.docx respectively.

Automation

Automation of computer database and JavaScript alerts

Dependency:

.Net core 3.1

About Automation:

The solution consist of three projects
1. Automation Framework: The wrapper of selenium
2. Computer Database: GUI tests related to computer DB
3. JavaScriptAlerts: GUI tests related to JS alerts

How to run test

$dotnet build
$dotnet test
Tests will run in parallel from Computer Database and JavaScript alerts project. It is expected that one test case will fail

Sample test results:

JavaScriptAlerts.Tests.Alert.CanVerifyJsAlert

   Opening browser Chrome
***********************************************
* Can verify JS Alert
***********************************************

1 - 'Open Heroku App'
    Opening 'https://the-internet.herokuapp.com/javascript_alerts'

2 - 'Click for JS alerts'
    Clicked 'By.XPath: //*[@id='content'] //button[text()='Click for JS Alert']'

3 - 'Verify alert text'
    Alert present = True
    Alert text = I am a JS Alert
    Alert Accepted

Time taken to complete the project: ~22 hours

About

Automation of computer database and JavaScript alerts

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages