Re second issue: bug tracker is not the place to ask how to use nun it.
Please use the mail list.
On Apr 27, 2013 12:30 PM, "kishore" <email address hidden> wrote:
> I am having 1 more issue:
>
> Sub:run specific Tests through coding
>
> I am using Selenium with C# fro Automation, and i want to invoke the
> Nunit through coding, i did it using below code.
>
> CoreExtensions.Host.InitializeService();
> TestPackage testPackage = new
> TestPackage(@"D:\Automation\bin\Debug\Test.dll");
> RemoteTestRunner remoteTestRunner = new RemoteTestRunner();
> remoteTestRunner.Load(testPackage);
> //TestFilter filter = new NameFilter(new TestName() { Name = "Test1" });
> TestResult testResult = remoteTestRunner.Run(new NullListener(),
> TestFilter.Empty, false, LoggingThreshold.Off);
>
> and i am able to run tests using category filter as below
>
> remoteTestRunner.Run(new
> NullListener(),newCategoryFilter("MyCat"),false,LoggingThreshold.Off);
>
> But i want to execute selected tests i.e how to set suite filter, i have
> tried this but faild.
>
> TestFilter filter=new NameFilter(new TestName() { Name = "Test1" });
> TestResult testResult=remoteTestRunner.Run(new NullListener(),
> filter,false,LoggingThreshold.Off)`;
>
> Please tell
> 1. how to run specific tests and
> 2.how to pass arguments through coding.
>
> Thanks,
> kishore.
>
> --
> You received this bug notification because you are a bug assignee.
> https://bugs.launchpad.net/bugs/712444
>
> Title:
> nunit-console /run don't execute parameterized test-cases (with commas
> in test-case name)
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/nunitv2/+bug/712444/+subscriptions
>
Re second issue: bug tracker is not the place to ask how to use nun it.
Please use the mail list.
On Apr 27, 2013 12:30 PM, "kishore" <email address hidden> wrote:
> I am having 1 more issue: Host.Initialize Service( ); @"D:\Automation \bin\Debug\ Test.dll" ); r.Load( testPackage) ; r.Run(new NullListener(), d.Off); r.Run(new ),newCategoryFi lter("MyCat" ),false, LoggingThreshol d.Off); remoteTestRunne r.Run(new NullListener(), false,LoggingTh reshold. Off)`; /bugs.launchpad .net/bugs/ 712444 /bugs.launchpad .net/nunitv2/ +bug/712444/ +subscriptions
>
> Sub:run specific Tests through coding
>
> I am using Selenium with C# fro Automation, and i want to invoke the
> Nunit through coding, i did it using below code.
>
> CoreExtensions.
> TestPackage testPackage = new
> TestPackage(
> RemoteTestRunner remoteTestRunner = new RemoteTestRunner();
> remoteTestRunne
> //TestFilter filter = new NameFilter(new TestName() { Name = "Test1" });
> TestResult testResult = remoteTestRunne
> TestFilter.Empty, false, LoggingThreshol
>
> and i am able to run tests using category filter as below
>
> remoteTestRunne
> NullListener(
>
> But i want to execute selected tests i.e how to set suite filter, i have
> tried this but faild.
>
> TestFilter filter=new NameFilter(new TestName() { Name = "Test1" });
> TestResult testResult=
> filter,
>
> Please tell
> 1. how to run specific tests and
> 2.how to pass arguments through coding.
>
> Thanks,
> kishore.
>
> --
> You received this bug notification because you are a bug assignee.
> https:/
>
> Title:
> nunit-console /run don't execute parameterized test-cases (with commas
> in test-case name)
>
> To manage notifications about this bug go to:
> https:/
>