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...
To use cypress, we need to use Visual Studio code IDE. Create new folder in the repo folder: VS code > open folder > find the just created folder Terminal > New terminal To initialise project: Just press enter. If all ok, type in yes. Installing cypress To install with specific version, add @^xx.x.x To open cypress: Click E2E testing: Once the initial configuration is completed, go back to VS code. Cypress > add a new folder within the cypress folder and name it "integration". Within integration folder, create a new javascript file (.js extension) To let Cypress know where it can find out tests, go to cypress config js file and type below command and save: Cypress will recognise all js file in integration folder as Tests. Then write the test in the js file. Sample: Save and run in the cypress browser. To find an element via cypress, click on the locator button and then the specific element that we want. From there you can just copy the code that has been prepare...
Comments
Post a Comment