Last modified by Ray Kiddy on 2009/09/03 12:13

From version 14.1
edited by Ray Kiddy
on 2009/09/03 12:13
Change comment: adding link to Selenium main page
To version 17.1
edited by Kieran Kelleher
on 2023/11/13 11:58
Change comment: Renamed back-links.

Summary

Details

Page properties
Parent
... ... @@ -1,0 +1,1 @@
1 +documentation.Home.How-tos.WebHome
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.kiddyr
1 +XWiki.kieran
Content
... ... @@ -11,10 +11,10 @@
11 11  === General Approach to Developing a Test ===
12 12  
13 13  Using the Selenium IDE, you can record a test to get a feel for the syntax of Selenium commands, or to quickly see the syntax for a specific type of user interface interaction, however, recorded tests are generally very fragile and will fall apart on dynamic pages where the layout and content are not static.
14 -So before we discuss building robust tests, let's first itemize our objectives or criteria under which our tests should operate robustly:
14 + So before we discuss building robust tests, let's first itemize our objectives or criteria under which our tests should operate robustly:
15 15  
16 16  * Localization - if user interface text in submit buttons, links, etc. can change depending on the selected language, then we don't want to depend on those for identifying ui elements in our Selenium tests
17 -* Data entry - rather than tediously program data entry for new enterprise objects, it is worth considering adding a [[WONDER:Auto Development Defaults]] feature that can be enabled in Properties. Such a feature would assign default values (random, fixed, serial or otherwise) to attributes in EOEnterpriseObject's awakeFromInsertion method. This is a much more powerful way to generate input values serverside in java that in Selenium. Consequently, your Selenium tests will become much shorter and simpler, resulting in them consisting mostly of user click interactions.
17 +* Data entry - rather than tediously program data entry for new enterprise objects, it is worth considering adding a [[doc:WONDER.Auto Development Defaults]] feature that can be enabled in Properties. Such a feature would assign default values (random, fixed, serial or otherwise) to attributes in EOEnterpriseObject's awakeFromInsertion method. This is a much more powerful way to generate input values serverside in java that in Selenium. Consequently, your Selenium tests will become much shorter and simpler, resulting in them consisting mostly of user click interactions.
18 18  
19 19  == Developing a Test ==
20 20  
... ... @@ -27,7 +27,7 @@
27 27  *** Assign ids to html elements if you are sure the element will only ever appear once on the page. With the css class identifiers, Selenium will act on the first one it locates in the page.
28 28  *** Wrap an element in a span tag and assign a css class or id to the span tag. Then you can make a Selenium locator expression that can click on some element type inside the span container.
29 29  
30 -Probably the best way to understand Selenium command, target, value combinations is by looking at the [[Selenium Command Examples]].
30 +Probably the best way to understand Selenium command, target, value combinations is by looking at the [[doc:documentation.Home.How-tos.How to Develop Selenium Tests.Selenium Command Examples.WebHome]].
31 31  
32 32  === Using ERSelenium's meta tag features for advanced test development ===
33 33  
... ... @@ -43,12 +43,10 @@
43 43  
44 44  The first pass thru the repeated segment, the actual values in the test are used and on consecutive repetitions the items from the @values list are substituted into the value part (the 3rd column) of the step immediately following the @values declaration
45 45  
46 -See also: [[Selenium]]
46 +See also: [[doc:documentation.Selenium]]
47 47  
48 48  {{panel title="WIKITODO"}}
49 -
50 -\* Flesh this out more with screenshots and examples for meta tags usage
51 -
49 +~* Flesh this out more with screenshots and examples for meta tags usage
52 52  {{/panel}}
53 53  
54 54  \\