public static void TestCaseController(TestCaseModel testCase)
 {
     testCase.setSearchModel(SearchModelController.createSearchModel());
     if (testCase.getScenario().Equals("Scenario1"))
     {
         TestScenarios.FirstScenario(testCase);
     }
     else if (testCase.getScenario().Equals("Scenario2"))
     {
         TestScenarios.SecondScenario(testCase);
     }
 }
Esempio n. 2
0
 void addAutogeneratedTestScenario(string testSuiteId)
 {
     TestScenarios.Add(new TestScenario(TestData.Autogenerated, "1", testSuiteId));
 }
Esempio n. 3
0
 /// <summary>
 /// There are no comments for TestScenarios in the schema.
 /// </summary>
 public void AddToTestScenarios(TestScenarios testScenarios)
 {
     base.AddObject("TestScenarios", testScenarios);
 }
Esempio n. 4
0
 /// <summary>
 /// Create a new TestScenarios object.
 /// </summary>
 /// <param name="ID">Initial value of Id.</param>
 public static TestScenarios CreateTestScenarios(int ID)
 {
     TestScenarios testScenarios = new TestScenarios();
     testScenarios.Id = ID;
     return testScenarios;
 }
Esempio n. 5
0
    /// <summary>
    /// Receives events (like input from mouse and keyboard) from the Irrlicht Engine
    /// </summary>
    public bool OnEvent(Event e)
    {
        if (e.Type == EventType.GUIEvent)
        {
            // a user interface event

            if ( e.GUIEventType == GUIEvent.LISTBOX_CHANGED ||
                 e.GUIEventType == GUIEvent.LISTBOX_SELECTED_AGAIN )
            {
                int selected = ((IGUIListBox)e.GUIEventCaller).Selected;
                SelectedDriverType = (DriverType)(selected+1);
            }
            else
                if (e.GUIEventType == GUIEvent.BUTTON_CLICKED)
                ClickedButton = (TestScenarios)e.GUIEventCaller.ID;
        }
        else
            if (e.Type == EventType.KeyInput)
        {
            // a key has been pressed

            if (!e.KeyPressedDown && e.Key == KeyCode.KEY_KEY_S && Shadow != null)
            {
                // toggle shadow visibility
                Shadow.Visible = !Shadow.Visible;
                return true;
            }
        }

        return false;
    }
Esempio n. 6
0
 public void AddTestScenario(TestScenario testScenario)
 {
     TestScenarios.Add(testScenario);
 }