Way to filter tests by Automatic and Manual? RRS feed

  • Question

  • I'm using C# to build an automation app for WHCK. The device that is being tested as Manual and Automatic tests. I ONLY want to run the Automatic tests, is there a way in the code to do this so the app doesn't complain when a two-machine test is encountered? Thanks.
    Monday, October 15, 2012 11:27 PM


  • I'm assuming from your post that you are able to filter automatic from manual by looking at the property ObjectModel.Test.TestType. A test that uses multiple machines is known as a logical machine set (LMS) or machine set for short. To check if a test uses multiple machines, use code similar to -

                MachineSet role = Test.GetMachineRole();
                if (role == null)
                    // machine does NOT use multiple machines
                    // machine uses multiple machines

    John -- This posting is provided "AS IS" with no warranties, and confers no rights.

    • Proposed as answer by John Garcia (HCK) Tuesday, October 16, 2012 2:56 PM
    • Marked as answer by liquidiq Wednesday, October 17, 2012 2:08 PM
    Tuesday, October 16, 2012 2:56 PM