Import
setTimeout 45000
clickAndWait //li[@id='accounts']/a/span[2]
storeText css=div.list-view-items-summary-clone countResultsString
storeEval parseInt(storedVars['countResultsString'].split(' ')[0]) countResults
open index.php/accounts/default
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
click link=Settings
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
clickAndWait link=Import
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
click id=ImportWizardForm_importRulesType_0
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
clickAndWait link=Next
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
click id=ImportWizardForm_firstRowIsHeaderRow
type id=ImportWizardForm_file C:\Inetpub\selenium\zurmo_bleeding\app\protected\modules\accounts\tests\functional\files\accounts.csv
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
clickAndWait link=Next
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
verifyTextPresent Step 3 of 6
click id=ImportWizardForm_explicitReadWriteModelPermissions_type_2
clickAndWait link=Next
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent Please map the fields you would like to import.
select id=ImportWizardForm_column_9_attributeIndexOrDerivedType label=Name
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
select id=ImportWizardForm_column_5_attributeIndexOrDerivedType label=Owner
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
select id=ImportWizardForm_column_5_mappingRulesData_UserValueTypeModelAttributeMappingRuleForm_type label=Zurmo Username
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
select id=ImportWizardForm_column_6_attributeIndexOrDerivedType label=Annual Revenue
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
select id=ImportWizardForm_column_7_attributeIndexOrDerivedType label=Description
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
select id=ImportWizardForm_column_8_attributeIndexOrDerivedType label=Employees
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
select id=ImportWizardForm_column_10_attributeIndexOrDerivedType label=Office Phone
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
select id=ImportWizardForm_column_11_attributeIndexOrDerivedType label=Office Fax
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
select id=ImportWizardForm_column_12_attributeIndexOrDerivedType label=Website
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
select id=ImportWizardForm_column_13_attributeIndexOrDerivedType label=Billing Address - City
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
select id=ImportWizardForm_column_14_attributeIndexOrDerivedType label=Billing Address - Country
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
select id=ImportWizardForm_column_15_attributeIndexOrDerivedType label=Billing Address - Postal Code
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
select id=ImportWizardForm_column_16_attributeIndexOrDerivedType label=Billing Address - Street 1
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
select id=ImportWizardForm_column_17_attributeIndexOrDerivedType label=Billing Address - Street 2
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
select id=ImportWizardForm_column_18_attributeIndexOrDerivedType label=Billing Address - State
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
select id=ImportWizardForm_column_19_attributeIndexOrDerivedType label=Industry
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
select id=ImportWizardForm_column_32_attributeIndexOrDerivedType label=Type
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.
clickAndWait link=Next
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
verifyTextPresent Congratulations!
assertTextPresent Rows with errors: 0
assertTextPresent Records created: 6
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
clickAndWait //div[@id='MenuView']/ul/li/a/span[2]
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
clickAndWait //li[@id='accounts']/a/span[2]
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
storeText css=div.list-view-items-summary-clone countResultsStringForTest
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
storeEval parseInt(storedVars['countResultsStringForTest'].split(' ')[0]) countResultsForTest
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
assertEval storedVars['countResultsForTest'] == storedVars['countResults'] + 6 true
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000