Launching application through White testing tool

Dec 2, 2009 at 7:33 AM

Hi i am newbie to White automation tool. I am working on Window application developed under C Sharp. My C sharp code is as follows

 

using System;

using System.Collections.Generic;

using System.Text;

using NUnit.Framework;

using Core;

namespace ClassLibrary1

{

  [TestFixture]

  public class Class1

  {

      Application ap;

    [SetUp]

    public void Setup()

    {

        string path="C:\\Program Files\\xyz\\abc\\MENU.exe";

        ap = Application.Launch(path);

    }

    [TearDown]

    public void TearDown()

    {  //Not yet written anything

     }

 

    [Test]

    public void ASimpleTest()

    {

        //Not yet written anything

    }

 

  }

 

}  

 

 

It is not launching application with above code. Could somebody tell me where its wrong at is not even giving any errors/warnings when i run this dll through NUnit.

 

Thanks in advance.

using System;
using System.Collections.Generic;
using System.Text;
using NUnit.Framework;
using Core;
namespace ClassLibrary1
{
  [TestFixture]
  public class Class1
  {
      Application ap;
    [SetUp]
    public void Setup()
    {
      //string path="C:\\Program Files\\Mozilla Firefox\firefox.exe"    ;
        string path="C:\\Program Files\\Online Systems Inc\\Interstate Worldwide Relocation\\MENU";
        ap = Application.Launch(path);
    }
    /// <summary>
    /// Tears down.
    /// </summary>
    [TearDown]
    public void TearDown()
    {
       
        
    }
    [Test]
    public void ASimpleTest()
    {
        
    }
  }
}