0

テストの最後に、テストが成功したか失敗したかのレポートを発行しない場合、自動化にセレンを使用する利点は何ですか?

4

3 に答える 3

6

Seleniumは実際にはテストフレームワークではなく、ブラウザードライバーです。OpenGLでGUIアプリを作成する以上に、Seleniumでテストを作成することはありません。通常、テストは、のような単体テストフレームワークunittest、またはそのnoselettuceに構築されたもので記述します。次に、テストではSeleniumを使用してブラウザーと対話します。これは、データベースAPIを使用してDBにアクセスするか、HTTPライブラリを使用してWebサービスと通信するためです。

于 2013-03-22T20:11:39.817 に答える
0

使用する場合

python test_file.py

エラーが発生した場合は、最後にレポートが表示されます。

さらに、ノーズテストを見ることができます。「-sv」パラメータをnoseに渡すと、どのテストに合格し、どのテストに合格しなかったかの詳細な出力が表示されます。nosetestsをXunitと組み合わせると、JenkinsなどのCIサーバーで使用できる有効なXunit-xmlレポートを取得できます。

于 2013-03-22T20:11:16.690 に答える
0

Its up to the discretion of the user what to do with the selenium webdriver automation and how to report the test results. Selenium webdriver will give you the power to control your web browser and to automate your web application tests.

Same as how you have to program in any other automation tool the conditions for checking your pass or fail criteria for any tests, in Selenium also it has to be programmed.It is totally up to the programmer how to report their results and the template to be followed. You will have to write your own code to format and store the test results.

于 2013-03-24T03:41:24.920 に答える