Selenium IDE

Selenium is one of the most well known testing frameworks in the world that is in use. It is an open source project that allows testers and developers alike to develop functional tests to drive the browser. for automation of test cases The Mozilla Firefox browser has one plugin on the main page http://seleniumhq.org/ This page Download latest released in “Downloads”tab. Follow the next steps
This section to show the parts the Selenium How create a new test case:
Using variables in our tests There are two mechanisms for validation elements availables on the page.

Assert:

Allows the test check if the element is on the application.

Verify:

Check the element is on the page, but if it isn’t then the test will carry on executing.
We can export in different language the programation. See the next image.

Creating ours first test case: Verify that "User name" field exists on this page.

This test case verify if exists "User name" field. We could add new command the form manual too. For example.

1.-Click right and select "New command".

2.-Select one option in the "Command" list.For example "VerifyElementPresent"

3.-Click on "find" button. And select on field or button on the page. In the "Target" field is "id" or "name" the element the page

4.-Verify that the command was add.

4.-Verify that "User name" field exists on the page.

for find the "id" or the "name" of the element, we need add plugins "firebug" in browser Firefox. download the main page https://addons.mozilla.org/es/firefox/addon/firebug/
Save the new test case. Only do click right on "Save Test Case" option.

No hay comentarios:

Publicar un comentario