私のオートメーションフレームワークにmavenとtestngを使用しています。私はここでテストを実行すべきブラウザを指定する@BeforeMethodの上にこれらのパラメータを使用しています <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<sui
のUbuntuで、コマンドライン経由のTestNGを実行しようとしたとき、それは java –cp "bin:/home/john/selenium-lib/*" org.testng.TestNG src/testing.xml
Error: Could not find or load main class –cp
のsrc/TestCaseクラス*/ パッケージのテストをスローに動作
TestNGがテストを実行していない理由は何ですか? これはクラスコード(Java)のである: public class main {
@Test
public static void main(String[] args) throws AWTException, InterruptedException
これは、日食のパスです: enter image description here