Skip to content
| Marketplace
Sign in
Visual Studio>Templates>SelDotNet Full
SelDotNet Full

SelDotNet Full

Jason Nhien Truong

|
3,375 installs
| (1) | Free
SelDotNet is a web automation test framework that inherits from Selenium WebDriver and NUnit. In order to get further information, please refer to this url: http://seldotnet.blogspot.net. This project includes both of sample and assemblies. For later, if you want to upgrade, ...
Download

1.    What is SelDotNet?

SelDotNet = Selenium + NUnit

Cooperation is strength

SelDotNet is an automated testing framework that uses Selenium WebDriver Client and NUnit.

It is a helpful solution to apply automated testing with Selenium and NUnit.

 

2.   Features

1)   A Readable Project Folder Structure

This is a recommended folder structure for a test project that uses Sel Dot Net framework.

2)   Page Oriented Design

The test is separated in modules, pages and actions. In order to design tests, we just identify the pages and their actions. Then, in the testing classes, we call these actions. Therefore, the tests are readable and clear.

With this designing approach, we know that how many pages are automated; How many features are automated.

 

Figure 1Page Oriented Design

3)   Separated GUI Map

GUI Map is a repository that stores test objects’ information that reflects real object.

GUI Map is stored in a separated section. So that, if there is any change on GUI, we don’t need to change the source code and build again.

4)   Separated Test Data

It does not affect to the source code either if we want to change the set of testing data. Since, SelDotNet also stores test data in a separated section.

5)   Test Multi-language supported web application

In order to test web application that supports multi-languages, we just create more GUI mapping sets, test data sets adapted for each language.

6)   Self-Described scripts

The tests automatically describe themselves by using SelDotNet framework. E.g. looking in to this block of code, you also understand the testing workflow.

class LoginPage

{

    public void SubmitLoginForm(string username, string password)

    {

        Editbox("Username Textbox").Set(username);

        Editbox("Password Textbox").Set(password);

        Button("LoginButton").Click();

    }

 

    public void AssertShowWelcomeText()

    {

        Label("Welcome Text").AssertPresent();

    }

}

 

class TestLoginFeature

{

    public void TestLogin(string username, string password)

    {

        LoginPage loginPage = new LoginPage();

        loginPage.SubmitLoginForm(username, password);

        loginPage.AssertShowWelcomeText();

    }

}

 

7)   Self-Logged testing scripts

If there is any error, SelDotNet will capture screen shot for later reference. It also logs reproducing steps to the report to let user know about the problem.

 

Figure 2 Self Logged/Reported Test Scripts

8)   Catch Javascript Error Automatically

During executing time, SelDotNet will logs javascript error to the result if any.

9)   Security

SelDotNet provides an encryption tool to encrypt sensitive information such as password, connection string to DB. Then we use them as inputs.

 

Editbox("Password Textbox").SetSecure("99wjJUMMyPZaAnAisq9SCA==");

 

 

10)Inherits features of NUnit framework

Using NUnit framework to perform asserting tasks

Using NUnit Runner to select and run test fixture/ test cases.

11)Supports well for common web object

Supporing for common web objects:

  1. Button
  2. Checkbox
  3. Editbox
  4. Element
  5. FileSelect
  6. Flash
  7. Image
  8. Label
  9. Link

10.  Listbox

11.  RadioGroup

12.  Table

13.  TextArea

E.g.

 

12)Save time on scripting

This is a traditional way to verify text of a cell in a table

public string GetTextFromCell(stirng locator, int rowIndex, int colIndex)

{

//Do some thing here

return cellText;

}

string celltext = GetTextFromCell(locator, rowIndex, colIndex);

string expectedText ="123";

string msg = String.Format("Asserts that text of cell ({0},{1}) of {2}

is {3}",rowIndex,colIndex,locator,exp);

Assert.AreEqual(expectedText,celltext,msg);

 

Now the script will be simplier and more readable

Table("Result").AssertCellText(0, 0, "123");

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft