开始只写一个LoginCase的时候选择 LoginCase - 右击 - run as - TestNG Test可以执行成功。之后又加了 CourseCase后,直接右击这样执行 LoginCase显示url啥的未定义,无法成功,显示:
Parameter ‘url’ is required by @Configuration on method beforeClass but has not been marked @Optional or defined
百度到使用右键-run in configuration-- suite-选择bin目录下自定义的xml文件可以执行LoginCase,但是会连着CourseCase一起执行。
请问为啥两个之后无法LoginCase - 右击 - run as - TestNG Test,CourseCase也一样。(http://img1.sycdn.imooc.com//szimg/5f8a776f09975e6910110722.jpg