Users Import Test
setSpeed 3000
setTimeout 45000
open index.php/import/default
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
click id=ImportWizardForm_importRulesType_11
assertText link=Upload File Upload File
clickAndWait link=Upload File
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
click id=ImportWizardForm_firstRowIsHeaderRow
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
type id=ImportWizardForm_file C:\selenium\dev8a\zurmo\app\protected\modules\import\tests\functional\files\importUsersTest.csv
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
assertText link=Map Fields Map Fields
clickAndWait link=Map Fields
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent Please map the fields you would like to import.
select id=ImportWizardForm_column_0_attributeIndexOrDerivedType label=Username
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
select id=ImportWizardForm_column_1_attributeIndexOrDerivedType label=Password
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
select id=ImportWizardForm_column_4_attributeIndexOrDerivedType label=Last Name
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
select id=ImportWizardForm_column_2_attributeIndexOrDerivedType label=Status
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
select id=ImportWizardForm_column_3_attributeIndexOrDerivedType label=First Name
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
clickAndWait //div[@class='float-bar']/div/div/a[2]/span
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent Data Analysis is complete.
assertText //form[@id='edit-form']/div[1]/div/ul/li[1]/strong 2
assertText //form[@id='edit-form']/div[1]/div/ul/li[2]/strong 0
assertText //form[@id='edit-form']/div[1]/div/ul/li[3]/strong 0
assertText link=Import Data Import Data
clickAndWait link=Import Data
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
verifyTextPresent Congratulations!
assertText //form[@id='edit-form']/div[1]/div/ul/li[1]/strong 2
assertText //form[@id='edit-form']/div[1]/div/ul/li[2]/strong 0
assertText //form[@id='edit-form']/div[1]/div/ul/li[3]/strong 0
open index.php/users/default
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
type id=UsersSearchForm_anyMixedAttributes myusername1
keyUp UsersSearchForm_anyMixedAttributes \10
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForText //div[@id='list-view']/div[2]/table/tbody/tr/td[3] myusername1