Specflow is a BDD framework - purpose of using Specflow is when you want to apply BDD methodology (because Selenium is not enough to implement BDD) BDD Behavior-driven development (BDD) is an agile software development methodology that focuses on collaboration and communication between developers, testers, and business stakeholders Selenium is also a framework NUnit is also a framework In feature file part, will use Gherkin syntax to write test case (will only include human language test case) Step definition will bridge the human language with the code To use Specflow, need to install below NuGet packages Creating a feature file: Folder > Add > New Item > Specflow The tag can be used to tag the test case. Example, @positive / @smoke / @regression etc What is Gherkin ? Given, When, Then - These are Gherkin syntax Creating the step definition:
Dev Ops Manual Example: Team gonna build login functionality of a software team: 3 Developers, tester, system engineer 1 dev for FE, 1 dev for DB, 1 dev for BE working in parallel They will discuss what they are gonna use and how they are gonna approach this particular task - Dev 2 will create framework for project and upload in Github in a repository - thereafter, Dev 3 will copy whatever that has been uploaded on Github and start to work on that file - this allows all 3 devs to work on the same version at the same time - once dev 3 finish, he will push the code to the repository and inform other devs - before the dev 1 and 2, push his or her code into Github, they need to merge the code of dev 3 and then push their latest changes to Github - once development is done and all pushed to Github, dev will inform system engineer - system engineer will grab all that code and deploy it to the test environment for the tester to start testing - it was then decided that 10 out of 50 ...
Test Automation tool - Selenium WebDriver (can use C#, java, phyton, etc - Cypress with JavaScript - Playwright Which tool should be used? - no dependency on what devs used to develop the code What is a gitignore file? When we push our code into github, the different extension files will not be pushed into our repo. That is what the gitignore file is for. Once we have created a repo, we need to clone it into our local. What is gitbash for? - can be used for cloning ------------------- Visual Studio - Visual studio is like a mobile phone - want to access FB What do we need to start FB? Need to download the FB app. Since now we wanna use Selenium, we have to download Selenium into VS. This is what we call Nuget Package (similar to FB app in terms of mobile phone) Nuget Package manager is similar to an App Store - Selenium webDriver nuget package will allow us to access the Selenium library of codes - Selenium Support will provide support classes for selenium GitBash Means I am on th...
Comments
Post a Comment