Max Media Manager

Functional tests

These tests are designed to be run by the Selenium test-runner.

Create campaign with invalid dates

open /tests/setup.php?scenario=one_of_each
open /

type

username

agency

type

password

agency

clickAndWait

//input[@value='Login']


assertTextNotPresent

The password is not correct


clickAndWait

link=Inventory


clickAndWait

link=Example Advertiser


clickAndWait

link=Campaign overview


clickAndWait

link=Add new campaign


select

activateDay

label=23

select

activateMonth

label=March

select

activateYear

index=1

type

comments

This campaign was created by the automated functional testing process, and should be deleted.

clickAndWait

//input[@value='Save Changes']


clickAndWait

link=Campaign properties


verifyValue

activateSet

off

verifyValue

activateDay

23

verifyValue

activateMonth

3

verifyValue

activateYear

2006

verifyValue

expireSet

on

click

link=Delete


verifyConfirmation

Do you really want to delete this campaign?


open /tests/teardown.php