Hi all,
I would like to do simple test to read some data from excel.
Excel example:
Login Pass
Piotr selenium
So I would like to get this login and pass and put into my
application, but I don't know how to get those variables.
I was looking some simple code in internet and found something but I
have some problem. I'm using Visual Studio 2010 and C# language with
Nunit and I get following error:
"System.InvalidOperationException : The 'Microsoft.Jet.OLEDB.4.0'
provider is not registered on the local machine."
---------------------------------------------------------------
Part of my code is below
using System;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading;
using NUnit.Framework;
using Selenium;
using System.Data.OleDb;
using System.Data;
namespace SeleniumTesting
{
[TestFixture]
public class Untitled
{
[SetUp]
public void SetupTest()
{
selenium = new DefaultSelenium("localhost",
4444,"*firefox", "
http://www.mysite.com/");
selenium.Start();
}
[Test]
public void ExcelDataDrivenTest()
{
DataSet dsLoginDet = new DataSet();
dsLoginDet = getData(); <-- here is this problem
....
-----------------------------------------------------------------------
Can you somehelp me with this or maybe provide me some another code
soultion for C# and VS 2010. Please help me!!
Thanks a lot for help!!!
BR
Piotr