私が作成したEclipse Maven-Selenium-TestNGのJavaプロジェクトの上にロボットを設定しようとしていますが、デフォルトのキーワードを取得していないようですまだ自分自身を追加しようとした)。ロボットのフレームワークでキーワードの実装が行われていない
私は、mavenプロジェクトを作成し、pel.xmlに、セレニウム3.4、testNG 6.8、およびロボット3.0.2の依存関係を追加し、次にロボットプラグイン1.4.7を追加しました。最後に、必要なものをすべてダウンロードするようにプロジェクトを更新しました。
src> test> javaにselenium(ロボットなし)をテストするには、私のシステムのchromedriver.exeファイルを指すシステムプロパティを追加し、ブラウザを開いてナビゲートするだけの簡単なテストを追加しましたgoogle。それはうまくいったので、今はその上にロボットを使いたい。
これは私のpom.xmlファイルである:私はのように実行すると、しかし
*** Settings ***
Test Set Up Start Selenium Server
Test Tear Down Stop Selenium Server
*** Test Cases ***
Visit google
Open Browser https://www.google.com chrome
Close Browser
:私は、次の内容ではsrc /テスト/ robotframework /受諾内のファイルを、作成した
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.demo.automation</groupId>
<artifactId>automated_tests</artifactId>
<version>0.0.1-SNAPSHOT</version>
<dependencies>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>3.4.0</version>
</dependency>
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<version>6.8</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.robotframework</groupId>
<artifactId>robotframework</artifactId>
<version>3.0.2</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.robotframework</groupId>
<artifactId>robotframework-maven-plugin</artifactId>
<version>1.4.7</version>
<executions>
<execution>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
セットアップに失敗しました:名前が「Start Selenium Server」のキーワードが見つかりませんでした。
また、ティアダウンに失敗しました:名前が「Stop Selenium Server」のキーワードがありません が見つかりました。
なぜ、ロボットがキーワードの実装を見つけられないのですか?また、自分のキーワードの実装を追加するにはどうすればよいですか?