예제 #1
0
        public void SetUp()
        {
            // Before each test


            // Define in autConfig located in your %localappdata%/LeanFT/config folder.
            // Create authConfig.json file if not present and structure it like described here
            // https://admhelp.microfocus.com/uftdev/en/15.0-15.0.2/HelpCenter/Content/HowTo/TestObjects_Manual.htm#Run
            // To make your app start up, follow instructions here
            // https://admhelp.microfocus.com/uftdev/en/15.0-15.0.2/NetSDKReference/webframe.html#CodeSamples_.NET/LaunchAUT_Samples.htm

            application = Desktop.LaunchAut("C:\\Users\\Jan Baetens\\source\\repos\\ButtonClicker\\ButtonClicker\\bin\\Debug\\ButtonClicker.exe");
        }
        public void TestFixtureSetUp()
        {
            // Setup once per fixture

            // Define in autConfig located in your %localappdata%/LeanFT/config folder.
            // Create authConfig.json file if not present and structure it like described here
            // https://admhelp.microfocus.com/uftdev/en/15.0-15.0.2/HelpCenter/Content/HowTo/TestObjects_Manual.htm#Run
            // To make your app start up, follow instructions here
            // https://admhelp.microfocus.com/uftdev/en/15.0-15.0.2/NetSDKReference/webframe.html#CodeSamples_.NET/LaunchAUT_Samples.htm

            //TODO: change to your own dir
            application = Desktop.LaunchAut("C:\\Users\\Jan Baetens\\source\\repos\\Calculator\\Calculator\\bin\\Debug\\Calculator.exe");

            var calculatorWindow = Desktop.Describe <IWindow>(new WindowDescription
            {
                WindowTitleRegExp = @"Calculator",
                ObjectName        = @"Calculator",
                FullType          = @"window"
            });

            calculatorWindow.WaitUntilVisible();

            calculatorApplicationModel = new CalculatorApplicationModel();
        }