Actions

Difference between revisions of "Selenium Test Case Methods"

From Joomla! Documentation

(Introduction)
(Introduction)
Line 6: Line 6:
 
With the introduction of System tests in February 2010, there are also a number of Joomla! specific methods that can be used. These methods are part of the SeleniumJoomlaTestCase class, as defined by the file <code>tests/system/SeleniumJoomlaTestCase.php</code>
 
With the introduction of System tests in February 2010, there are also a number of Joomla! specific methods that can be used. These methods are part of the SeleniumJoomlaTestCase class, as defined by the file <code>tests/system/SeleniumJoomlaTestCase.php</code>
  
These methods exist so that none of the path or login information is coded into the tests. Instead, it comes from the config file located at <code>tests/system/servers/configdef.php</code>
+
These methods exist so that none of the path or login information is coded into the tests. Instead, it comes from the config file located at <code>tests/system/servers/configdef.php</code> See [[Running_Automated_Tests_for_Version_1.6#Create_a_Selenium_Configuration_File]]
  
 
== Available Selenium Test Case Methods ==
 
== Available Selenium Test Case Methods ==

Revision as of 14:35, 10 February 2010


News and Updates

2010 02 10 : Initial draft of this article

Introduction

With the introduction of System tests in February 2010, there are also a number of Joomla! specific methods that can be used. These methods are part of the SeleniumJoomlaTestCase class, as defined by the file tests/system/SeleniumJoomlaTestCase.php

These methods exist so that none of the path or login information is coded into the tests. Instead, it comes from the config file located at tests/system/servers/configdef.php See Running_Automated_Tests_for_Version_1.6#Create_a_Selenium_Configuration_File

Available Selenium Test Case Methods

As of this writing, there are seven methods that belong to the SeleniumJoomlaTestCase class.

  • doAdminLogin()
  • doAdminLogout()
  • gotoAdmin()
  • gotoSite()
  • doFrontEndLogin()
  • doFrontEndLogout()
  • setTinyText($text)