I am using ‘Telerik Test Framework’(NUnit Template) with VSTS 2012.
Please help me how to do parameterization using Excel in ‘NUnit’ template. If you provide me step by step guide or Video will be great help.
My Sample Code look like this:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ArtOfTest.WebAii.Controls.HtmlControls;
using ArtOfTest.WebAii.Controls.HtmlControls.HtmlAsserts;
using ArtOfTest.WebAii.Core;
using ArtOfTest.WebAii.ObjectModel;
using ArtOfTest.WebAii.TestAttributes;
using ArtOfTest.WebAii.TestTemplates;
using NUnit.Framework;
using Core = NUnit.Core;
namespace UnitTestProject1{
[TestFixture]
Public class TelerikNUnitTest1 : BaseTest
{
[Test]
Public void testmethod1()
{
Manager.LaunchNewBrowser(BrowserType.InternetExplorer);
ActiveBrowser.NavigateTo("http://www.Anaqal.com");
Find.ByXPath<HtmlInputText>("//input[@type='text' and contains(@name, 'EmailAddressTextBox')]").Text = "admin@ana.com";
Find.ById<HtmlInputPassword>("ctl00_ctl00_PageContentPlaceHolder_PageContentPlaceHolder_PasswordTextBox").Text = "Admin1";
}
}
}
I wants to parameterized ‘Email Address’ and ‘Password’ field with multiple data
My Excel sheet contains data like this
EmailAddress | Password |
Test1@ana.com | Pwd123 |
Test2@ana.com | pwd456 |