Skip to main content
added 88 characters in body
Source Link
Anton
  • 11
  • 2

Yes, just to expand on the original post, you can. download run selenium test as a C Sharp class as follows:

Download Visual studio community edition.

createCreate a project with template Visual C#: unit test project

Add selenium webdriver package

add selenium support

under the new project, add a new C sharp class: Add : Unit Test

A selenium test is a C# class

Now you create the test case

Add [TestClass] and [TestMethod] and so on

Now you can run the selenium test

You can keep adding test cases under the same project

Each test case is saved as a .cs file

After a while , you will have a bunch of test cases under the same project and you can run them automatically one after the other by just right clicking the editor and click 'run tests'

A lot more is involved, and its best to buy books on this area. A lot of reading to be done. Personally, I prefer Python for test scripting but I am sure others have their own favorite language. It boils down to whichever language you have the most experience with(your comfort zone).

Yes, you can. download Visual studio community edition.

create a project with template Visual C#: unit test project

Add selenium webdriver package

add selenium support

under the new project, add a new C sharp class: Add : Unit Test

A selenium test is a C# class

Now you create the test case

Add [TestClass] and [TestMethod] and so on

Now you can run the selenium test

You can keep adding test cases under the same project

Each test case is saved as a .cs file

After a while , you will have a bunch of test cases under the same project and you can run them automatically one after the other by just right clicking the editor and click 'run tests'

A lot more is involved, and its best to buy books on this area. A lot of reading to be done. Personally, I prefer Python for test scripting but I am sure others have their own favorite language. It boils down to whichever language you have the most experience with(your comfort zone).

Yes, just to expand on the original post, you can run selenium test as a C Sharp class as follows:

Download Visual studio community edition.

Create a project with template Visual C#: unit test project

Add selenium webdriver package

add selenium support

under the new project, add a new C sharp class: Add : Unit Test

A selenium test is a C# class

Now you create the test case

Add [TestClass] and [TestMethod] and so on

Now you can run the selenium test

You can keep adding test cases under the same project

Each test case is saved as a .cs file

After a while , you will have a bunch of test cases under the same project and you can run them automatically one after the other by just right clicking the editor and click 'run tests'

A lot more is involved, and its best to buy books on this area. A lot of reading to be done. Personally, I prefer Python for test scripting but I am sure others have their own favorite language. It boils down to whichever language you have the most experience with(your comfort zone).

added 288 characters in body
Source Link
Anton
  • 11
  • 2

Yes, you can. download Visual studio community edition.

create a project with template Visual C#: unit test project

Add selenium webdriver package

add selenium support

under the new project, add a new C sharp class: Add : Unit Test

A selenium test is a C# class

Now you create the test case

Add [TestClass] and [TestMethod] and so on

Now you can run the selenium test

You can keep adding test cases under the same project

Each test case is saved as a .cs file

After a while , you will have a bunch of test cases under the same project and you can run them automatically one after the other by just right clicking the editor and click 'run tests'

A lot more is involved, and its best to buy a bookbooks on this area. A lot of reading to be done. Personally, I prefer Python for test scripting but I am sure others have their own favorite language. It boils down to whichever language you have the most experience with(your comfort zone).

Yes, you can. download Visual studio community edition.

create a project with template Visual C#: unit test project

Add selenium webdriver package

add selenium support

under the new project, add a new C sharp class: Add : Unit Test

A selenium test is a C# class

Now you create the test case

Add [TestClass] and [TestMethod] and so on

Now you can run the selenium test

A lot more is involved, and its best to buy a book on this area.

Yes, you can. download Visual studio community edition.

create a project with template Visual C#: unit test project

Add selenium webdriver package

add selenium support

under the new project, add a new C sharp class: Add : Unit Test

A selenium test is a C# class

Now you create the test case

Add [TestClass] and [TestMethod] and so on

Now you can run the selenium test

You can keep adding test cases under the same project

Each test case is saved as a .cs file

After a while , you will have a bunch of test cases under the same project and you can run them automatically one after the other by just right clicking the editor and click 'run tests'

A lot more is involved, and its best to buy books on this area. A lot of reading to be done. Personally, I prefer Python for test scripting but I am sure others have their own favorite language. It boils down to whichever language you have the most experience with(your comfort zone).

Source Link
Anton
  • 11
  • 2

Yes, you can. download Visual studio community edition.

create a project with template Visual C#: unit test project

Add selenium webdriver package

add selenium support

under the new project, add a new C sharp class: Add : Unit Test

A selenium test is a C# class

Now you create the test case

Add [TestClass] and [TestMethod] and so on

Now you can run the selenium test

A lot more is involved, and its best to buy a book on this area.