AdminViewsTest

Extends \ls\tests\TestBaseClassView

Class AdminViewsTest This test loops through all basic admin view pages and cheks if they open withour errors

package

ls\tests

group

adminviews

Methods

addBaseViews

addBaseViews() 

addGeneralSettingsViews

addGeneralSettingsViews() 

addParticipantsViews

addParticipantsViews() 

addSettingsViews

addSettingsViews() 

addSurveyViews

addSurveyViews() 

addUsersViews

addUsersViews() 

adminLogin

adminLogin(string $userName, string $password) : void
inherited static
Throws
\Exception
\Facebook\WebDriver\Exception\NoSuchElementException

Arguments

$userName

string

$password

string

Delete failed login attempts.

deleteLoginTimeout() 
inherited static
Throws
\CDbException

findViewTag

findViewTag(string $name, array $view) 
inherited

Arguments

$name

string

$view

array

getSurveyUrl

getSurveyUrl( $lang = 'en') : string
inherited

Arguments

$lang

Response

string

Get URL to admin view.

getUrl(array $view) : string
inherited static
todo

Rename to getAdminUrl.

Arguments

$view

array

Response

string

importSurvey

importSurvey(string $fileName) : void
inherited static

Arguments

$fileName

string

setupBeforeClass

setupBeforeClass() 
inherited static

setUpBeforeClass

setUpBeforeClass() 
inherited static

tearDownAfterClass

tearDownAfterClass() 
inherited static

testAdminSurveyViews

testAdminSurveyViews(string $name,  $view) 
dataProvider

addSurveyViews

Arguments

$name

string

$view

testAdminViews

testAdminViews(string $name,  $view) 
dataProvider

addBaseViews

Arguments

$name

string

$view

testGeneralSettingsViews

testGeneralSettingsViews(string $name,  $view) 
dataProvider

addGeneralSettingsViews

Arguments

$name

string

$view

testParticipantsViews

testParticipantsViews(string $name,  $view) 
dataProvider

addParticipantsViews

Arguments

$name

string

$view

testSettingsViews

testSettingsViews(string $name,  $view) 
dataProvider

addSettingsViews

Arguments

$name

string

$view

testUserViews

testUserViews(string $name,  $view) 
dataProvider

addUsersViews

Arguments

$name

string

$view

Properties

web server port TODO this should be in configuration somewhere

webPort : integer
inherited static
var

web server port TODO this should be in configuration somewhere

Type(s)

integer

webDriver

webDriver : \ls\tests\LimeSurveyWebDriver
inherited static

domain

domain : string
inherited static
var

Type(s)

string

testHelper

testHelper : \ls\tests\TestHelper
inherited static
var

Type(s)

\ls\tests\TestHelper

tempFolder

tempFolder : string
inherited static
var

Type(s)

string

screenshotsFolder

screenshotsFolder : string
inherited static
var

Type(s)

string

surveysFolder

surveysFolder : string
inherited static
var

Type(s)

string

dataFolder

dataFolder : string
inherited static
var

Type(s)

string

viewsFolder

viewsFolder : string
inherited static
var

Type(s)

string

testSurvey

testSurvey : \Survey
inherited static
var

Type(s)

\Survey

surveyId

surveyId : integer
inherited static
var

Type(s)

integer