I want to utilize DataManager functionality provided by CUITE but it throws Null exception at
Hashtable htdata = CUITe_DataManager.GetDataRow(Type.GetType("SampleTestProject.UnitTest1",true,true), "XMLFile1", "tc2");
Am I doing anything wrong?
I have added XMLFile in project but still the same issue. Help needed
using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Microsoft.VisualStudio.TestTools.UITesting;
using Microsoft.VisualStudio.TestTools.UITest.Extension;
using Microsoft.VisualStudio.TestTools.UITesting.HtmlControls;
using CUITe;
using System.Collections;
using SampleTestProject.ObjectRepository;
using CUITe.Controls.HtmlControls;
namespace SampleTestProject
{
[CodedUITest]
[DeploymentItem(@"SampleTestProject\XMLFile1.xml")]
public class UnitTest1
{
//Hashtable htData = CUITe_DataManager.GetDataRow(Type.GetType("SampleTestProject.UnitTest1"),"XMLFile1.xml","tc2");
[TestMethod]
public void TestMethod1()
{
Hashtable htdata = CUITe_DataManager.GetDataRow(Type.GetType("SampleTestProject.UnitTest1",true,true), "XMLFile1", "tc2");
BrowserWindow.Launch("http://www.codeplex.com");
CodePlex pgCodePlex = CUITe_BrowserWindow.GetBrowserWindow<CodePlex>();
pgCodePlex.txtSearchAllProjects.SetText("");
//htData["firstName"].ToString());
}
}
}