コード例 #1
0
        public void test02()
        {
            UltimateQA test = new UltimateQA(this);

            test.populateName(name);       //populate filed [NAME]
            test.populateMessage(message); //populate filed [MESSAGE]
            test.sumNumbers("");           //sum numbers and populate the filed with result
            test.clickSubmitBtn();         //click [SUBMIT] btn
            test.checkSuccessMessage();    //check the 'SUCCESS' message
        }
コード例 #2
0
        public void test01()
        {
            UltimateQA test = new UltimateQA(this);

            test.populateName(name);                          //populate filed [NAME]
            test.populateMessage(message);                    //populate filed [MESSAGE]
            test.populateResult(result);                      //populate filed from question
            String FIRST_NUMBER  = test.getFirstNumber();     //get first number to string
            String SECOND_NUMBER = test.getSecondNumber();    //get second number to string

            test.clickSubmitBtn();                            //click [SUBMIT] button
            test.compareNumbers(FIRST_NUMBER, SECOND_NUMBER); //compare string with new first and second numbers
            test.checkFailMessage();                          //check 'Fail' message
        }