代码构建在Visual Studio上,但测试在NUnit上有错误

时间:2015-09-22 15:31:40

标签: .net selenium c#-4.0 nunit

我的代码在Visual Studio 13 premium上成功构建。但是,当我在Nunit上测试它时,它并没有显示它失败但它显示有错误。我是NUnit和单元测试的新手,非常感谢任何帮助。

这是我得到的错误:

at Automation.AL.Tests.DataTestMethod.RunTestMethod() in c:\QA\testautomation\AL\AL\Tests\DataSourceAttribute.cs:line 69
at NUnit.Core.TestMethod.RunTestCase(TestResult testResult)
--NoSuchElementException
at OpenQA.Selenium.Remote.RemoteWebDriver.UnpackAndThrowOnError(Response errorResponse)
at OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary`2 parameters)
at OpenQA.Selenium.Remote.RemoteWebDriver.FindElement(String mechanism, String value)
at OpenQA.Selenium.By.FindElement(ISearchContext context)
at   Automation.AL.Framework.UI.Pages.Administration.AdminPage.ClickTab[T]() in c:\QA\testautomation\AL\AL\Framework\UI\Pages\Administration\AdminPage.cs:line 43
at Automation.AL.Tests.Fixtures.Test.TestCase(String user, String password, String agentName, String destinationFolder, String fileName1, String fsDestinationFldr, String fsFileType, String metaElement1, String metaElement2, String metaElement3, XmlElement data) in c:\QA\testautomation\AL\AL\Tests\Fixtures\Test.cs:line 91

然而,错误在第91行,这就是它的样子:

            var libraryPage = skillsSettingsPage.Open<AjaxLibraryPage>();

如果您还有其他需要,请告诉我。

0 个答案:

没有答案