Web automation exercises
Test is written in .net 4.7.2 using libraries of Selenium, Specflow and so on. Four projects created in this solution to separate business logic with code logic. But core projects can be nuget package for easier maintenance than local projects.
All the business scenarios are written in BDD format.
Test execution can be either done from visual studio test explorer or nunit console run. Example nunit command: .\nunit3-console.exe Automation.Tests.dll --where="cat == smoke"
Three scenarios are included as part of this test sln.
Input required for this scenario are Applicant type, dependants, loan purpose, income, other income, expenses, current home loan repayment, other loan repayment, other commitments and credit card limit.
**Improvement - Scenario can be improved by utilising the default values.
Getting input only if it differs than default. **
No input required After calculation, clicking on start over set the fields default value.
Inputs for above scenarios can be updated via feature file of specflow.
Recommendation is to leave end to end happy path scenario at UI automation and rest move to API automation Examples
- UI automation coverage - Few combinations of borrowing limit calculation
- API automation coverage (In depth validations of below) a. Field validations of whether accepting correct input and rejecting invalid inputs b. Input combinations (leaving some default and other fields with updated values) c. Amount with negative values d. Amount with different values (int, decimal)