Overview

Namespaces

  • Azalea
    • Selenium
      • App
        • Charts
        • Components
        • Encounters
        • Home
        • Login
        • Main
        • Messages
        • Patients
        • Scheduler
      • Core
      • EHR
        • UI
          • Charts
          • Documents
          • Encounters
          • Home
          • Messaging
            • Folders
          • Patients
          • Payments
          • Precerts
          • Reports
          • Scheduler
          • Settings
            • General
              • Locations
              • Roles
              • Users
        • User
      • Login
        • UI
      • PHR
        • UI
        • User
      • Toolkit
        • Exception
        • Validation
    • Util
  • None
  • tests
    • integration
      • barebones
        • controllers
          • charts
          • patients
          • system
        • models
          • billing
          • encounters
          • examples
          • messaging
          • rcm
          • system
    • unit
      • barebones
        • lib
        • utilities
          • calculations

Classes

  • ApplicationTestCase
  • Customers
  • Patients
  • Providers
  • Users
  • Overview
  • Namespace
  • Class

Class ApplicationTestCase

To enable Sauce Labs testing, extend SauceLabsTestCase To enable local testing, extend SeleniumTestCase

Sauce\Sausage\WebDriverTestCase
Extended by Azalea\Selenium\Toolkit\SauceLabsTestCase
Extended by Azalea\Selenium\Toolkit\TestCase
Extended by Azalea\Selenium\App\ApplicationTestCase

Direct known subclasses

AddPatientTest, ChartAssessmentTest, ChartProviderAccessTest, ChartSigningTest, ChartsListProviderAccessTest, ChartSmokingStatusTest, ChartSubjectiveTest, EncounterClaimsTest, EncounterDemographicsTest, EncounterDiagnosisTest, EncounterGuarantorTest, EncounterLedgerTest, ChartCustomFieldBehaviorsTest, EncounterProceduresTest, ExampleTestCase, MessagesLabelsTest, PatentsListTest, PatientAccountSummaryTest, PatientBillingActionsTest, PatientCommentsTest, PatientDashboardAlertsTest, PatientDashboardLinkedPatientsTest, PatientDemographicsEditTest, ChartDiagnosisTest, PatientDocumentsTest, PatientPopupCommentsTest, PatientProviderAccessTest, PatientsListProviderAccessTest, PopupTest, SchedulerBlocksTest, SchedulerInsuranceBlocksTest, ChartEncounterDiagnosisTest, ChartEncounterProceduresTest, ChartInventoryTest, ChartObjectiveTest, ChartProblemHistoryTest, ChartProceduresTest
Namespace: Azalea\Selenium\App
Located at selenium/App/ApplicationTestCase.php
Methods summary
public
# setUpPage( )

Override

Overrides

Azalea\Selenium\Toolkit\TestCase::setUpPage()
public boolean
# supportsCustomer( integer $cus_id )

Override in child test suites to exclude some customers from every test case.

Override in child test suites to exclude some customers from every test case.

Parameters

$cus_id

Returns

boolean
public integer
# getCustomerId( )

Get the customer id we are running against.

Get the customer id we are running against.

Returns

integer
public
# skip( )

Mark this test as skipped.

Mark this test as skipped.

public Azalea\Selenium\Toolkit\View
# login( $email, $password )

Login to the web application.

Login to the web application.

Returns

Azalea\Selenium\Toolkit\View
public Azalea\Selenium\Toolkit\View
# getApp( )

Get the application view object.

Get the application view object.

Returns

Azalea\Selenium\Toolkit\View
public
# waitForAjax( )

Waits for the status light to turn green. Yes, really.

Waits for the status light to turn green. Yes, really.

public
# waitForHaze( $visible = true )

Waits for the haze screen to appear or go away.

Waits for the haze screen to appear or go away.

Returns


$this
public
# clearLocalStorage( )

Clears the brower's local storage cache.

Clears the brower's local storage cache.

Returns


$this
public Azalea\Selenium\Toolkit\View
# assertView( string $path, $args = array(), $timeout = 30 )

Verify that the view exists in the current page. If successful, it will return the view object.

Verify that the view exists in the current page. If successful, it will return the view object.

Parameters

$path
$view
$args
$timeout

Returns

Azalea\Selenium\Toolkit\View
public
# assertNoErrorPopups( integer $wait = 0 )

Asserts if there is 1 or more error popups on the screen. Can optionally sleep for $wait seconds before checking.

Asserts if there is 1 or more error popups on the screen. Can optionally sleep for $wait seconds before checking.

Parameters

$wait

Returns


$this;
public
# assertErrorPopup( integer $errorText = null, $wait = 0 )

Asserts if there is NOT an error popup on the screen. Can optionally sleep for $wait seconds before checking.

Asserts if there is NOT an error popup on the screen. Can optionally sleep for $wait seconds before checking.

Parameters

$errorText
$wait
$wait

Returns


$this;
public
# assertPatientRecord( integer $pat_id )

Asserts if the patient record with the given $pat_id is not open. Waits up to the default timeout in seconds.

Asserts if the patient record with the given $pat_id is not open. Waits up to the default timeout in seconds.

Parameters

$pat_id

Returns


$this
public integer
# getChartEncounterIdFromHash( integer $timeout = 30 )

Waits for a chart hash to appear in the location for $timeout seconds. Returns the enc_id from the hash.

Waits for a chart hash to appear in the location for $timeout seconds. Returns the enc_id from the hash.

Parameters

$timeout

Returns

integer
public integer
# getEncounterIdFromHash( integer $timeout = 30 )

Waits for an encounters hash to appear in the location for $timeout seconds. Returns the enc_id from the hash.

Waits for an encounters hash to appear in the location for $timeout seconds. Returns the enc_id from the hash.

Parameters

$timeout

Returns

integer
Methods inherited from Azalea\Selenium\Toolkit\TestCase
__call(), clickAndWait(), getView(), spinWait(), wait(), waitForHash(), within()
Methods inherited from Azalea\Selenium\Toolkit\SauceLabsTestCase
browsers(), setMetaData(), setUp()
Properties inherited from Azalea\Selenium\Toolkit\TestCase
$dom, $nestedSelectors
Properties inherited from Azalea\Selenium\Toolkit\SauceLabsTestCase
$base_url, $browsers, $tags
API documentation generated by ApiGen