Selenium Test Page & Unit Test Suite

Test Page:

SeleniumLibTestPage.html

https://unityconstruct.org/media/selenium/KeywordTestFramework-Workflow-1a.docx

 

 

Unit Tests:

  • This list isn't exhaustive, but is also limited by the availability of testable controls & conditions
  • As the Page Selenium Wrapper Class is expanded, tests should be created to exercise the code.
  • This will allow for confidence when implementing new features in other classes or when the Page class itself is changed.
  • Unit tests are even more invaluable when making fundamental changes to framework architecture by being to 'test early & often' as changes made.
  • Unit test also provide implementation details that will help others use the Page class & the selenium package in general
CurrentUrl  
PageTitle  
FavIcon  

body

 
h1  
h2  
p  
form  
input.text  
input.password  
input.submit  
input.checkbox  
input.radio  
textarea  
table  

table.thead

 
table.thead.tr  
table.thead.td  
table.tr  
table.tr.td  
   
   
   
image  
   
   
   
   
   
select.dropdown  
select.optgroup  
select.label  
   
selector.xpath  
selector.css  
selector.id  
selector.name  

selector.link

 
selector.partiallink  
   
attribute  
attribute.id  
attribute.src  
attribute.name  
attribute.value  
attribute.label  
attribute.style  
attribute.alt  
attribute.width  
attribute.height  
attribute.rows  
attribute.cols  
attribute.for  
attribute.href  
attribute.target  
attribute.rel  
attribute.charset  
attribute.lang  
attribute.xmlns  
attribute.action  
   
   
javascript  
js.window  
js.document  
js.element.addchild  
Tags