Не удалось вызвать конструктор, например, для .add[0] в фитнесе

Вот моя фитнес-страница:

!contents -R2 -g -p -f -h

!define TEST_SYSTEM {slim}

!path C:\Users\Jayasree
!path C:\Users\Jayasree\workspace\Selenium\bin\Sample
!|import|



!|add|
|num1|num2|sum()|
|10  |  2 |12  |

Мой код приспособления:

package Sample;


import fit.ColumnFixture;


public class add extends ColumnFixture{

     public int a;
     public int b;
     public add(int a,int b)
     {
         this.a=a;
         this.b=b;
     }

        public int getA() {
            return a;
        }

        public void setA(int a) {
            this.a = a;
        }

        public int getB() {
            return b;
        }

        public void setB(int b) {
            this.b = b;
        }
        public int sum() {
            return a+b;
        }


}

Я получаю следующую ошибку:

variable defined: TEST_SYSTEM=slim 

classpath: C:\Users\Jayasree
classpath: C:\Users\Jayasree\workspace\Selenium\bin\Sample
import import: Bad table! Import tables must have at least two rows.



eg.add Could not invoke constructor for eg.add[0]
num1    num2    sum()
10 The instance decisionTable_1.setNum1. does not exist
2 The instance decisionTable_1.setNum2. does not exist
12 The instance decisionTable_1.setSum. does not exist

Как я могу это решить?


person Jayasree Dinesh    schedule 23.03.2017    source источник


Ответы (1)


Таблица импорта требует имена пакетов для импорта:

!|import|
|Sample|

ColumnFixture требует соответствия тестовой системы:

!define TEST_SYSTEM {fit}
person Mike Stockdale    schedule 23.03.2017