Selenium-overview

提供:Dev Guides
移動先:案内検索

セレン-概要

前書き

Seleniumは、Webアプリケーションをテストするためのオープンソースでポータブルな自動ソフトウェアテストツールです。 さまざまなブラウザーとオペレーティングシステムで動作する機能があります。 Seleniumは単一のツールではなく、テスターがWebベースのアプリケーションをより効率的に自動化するのに役立つツールのセットです。

ここで、Seleniumスイートで使用可能な各ツールとその使用方法を理解しましょう。

Sr.No. Tool & Description
1

Selenium IDE

Selenium * I tegrated D evelopment E *nvironment(IDE)は、テストする必要のあるワークフローに従ってテスターがアクションを記録できるFirefoxプラグインです。

2
  • Selenium RC*

Selenium * R emote C *ontrol(RC)は、単純なブラウザーアクションと線形実行以上のものを可能にする主要なテストフレームワークでした。 Java、C#、PHP、Python、Ruby、PERLなどのプログラミング言語のフルパワーを利用して、より複雑なテストを作成します。

3
  • Selenium WebDriver*

Selenium WebDriverは、コマンドをブラウザに直接送信して結果を取得するSelenium RCの後継です。

4

Selenium Grid

Selenium Gridは、異なるマシンと異なるブラウザーで同時に並行テストを実行するために使用されるツールで、実行時間を最小限に抑えます。

セレンの利点

QTPとSeleniumは、ソフトウェア自動化テストの市場で最も使用されているツールです。 したがって、QTPよりもSeleniumの長所を比較することは理にかなっています。

Selenium QTP
Selenium is an open-source tool. QTP is a commercial tool and there is a cost involved in each one of the licenses.
Can be extended for various technologies that expose DOM. Limited add-ons and needs add-ons for each one of the technologies.
Has capabilities to execute scripts across different browsers. Can run tests in specific versions of Firefox , IE, and Chrome.
Can execute scripts on various operating systems. Works only with Windows.
Supports mobile devices. Supports mobile devices with the help of third-party tools.
Executes tests within the browser, so focus is NOT required while script execution is in progress. Needs Focus during script execution, as the tool acts on the browser (mimics user actions).
Can execute tests in parallel with the use of Selenium Grids. QTP cannot execute tests in parallel, however integrating QTP with QC allows testers to execute in parallel. QC is also a commercial tool.

セレンの欠点

QTPを介したSeleniumの落とし穴について説明しましょう。

Selenium QTP
Supports only web based applications. Can test both web and desktop applications.
No feature such as Object Repository/Recovery Scenario QTP has built-in object repositories and recovery scenarios.
No IDE, so the script development won’t be as fast as QTP. More intuitive IDE; automation can be achieved faster.
Cannot access controls within the browser. Can access controls within the browser such as favorites bar, backward, and forward buttons.
No default test report generation. Default test result generation within the tool.
For parameterization, users has to rely on the programming language. Parameterization is built-in and easy to implement.