Software Testing Using Tools
Software Testing Using VS2019
Lecture 11
Copyright By PowCoder代写 加微信 powcoder
Project Types
Selenium C# Tutorial
WebDriver with Visual Studio
Project Types
https://dev.to/caiosousa/introduction-to-software-testing-on-visual-studio-2019-3p81
Test Explorer
The Test Explorer window helps developers create, manage, and run unit tests.
You can use the Microsoft unit test framework or one of several third-party and open source frameworks.
Basic Syntax of C#
Namespace declaration
Class Attributes and Methods
Main method
Program statements
A namespace is a collection of multiple classes. Each namespace must be declared using the keyword ‘using’.
The first statement of the code includes the namespace into our program.
For example, “System” namespace defines the fundamental classes and events used in C#. T
The namespace to be used depends on the program requirement.
The second statement is declaring the class. A C# file can contain multiple classes within the same namespace.
The third statement includes the class declaration. A class may contain multiple attributes and multiple methods.
NUnit is the Unit Testing framework supported by Visual Studio and Selenium WebDriver. NUnit is the most widely used Unit Testing framework for .Net applications. NUnit presents the test results in a readable format and allows a tester to debug the automated tests.
Selenium WebDriver Commands in C#:
Browser commands
Web Element commands
Dropdown commands
https://www.guru99.com/selenium-csharp-tutorial.html
Setting up Selenium in VS
Regular Expressions Exercises
To be done during class.
程序代写 CS代考 加微信: powcoder QQ: 1823890830 Email: powcoder@163.com