......
[NUnit.Framework.TestCase**("Chrome", TestName = "One")]
[NUnit.Framework.TestCase(" Firefox", TestName = "Two")]
[NUnit.Framework.TestCase("InternetExplorer", TestName = "Three")]
public void TheRegisterTest(IWebDriver driver)
{
driver.Navigate().GoToUrl(baseURL + "/mercurywelcome.php");
......
当我尝试构建解决方案时,出现如下所示的错误:
NUnit.Framework.TestCase' is not an attribute class
我正在使用以下名称空间:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Diagnostics;
using System.Threading;
using NUnit.Framework;
using OpenQA.Selenium;
using OpenQA.Selenium.Firefox;
using OpenQA.Selenium.IE;
using OpenQA.Selenium.Chrome;
using OpenQA.Selenium.Support.UI;