| setTimeout |
45000 |
|
| open |
index.php/import/default |
|
| waitForPageToLoad |
|
|
| waitForCondition |
selenium.browserbot.getCurrentWindow().jQuery.active == 0 |
30000 |
| click |
id=ImportWizardForm_importRulesType_2 |
|
| assertText |
link=Upload File |
Upload File |
| clickAndWait |
link=Upload File |
|
| waitForPageToLoad |
|
|
| waitForCondition |
selenium.browserbot.getCurrentWindow().jQuery.active == 0 |
30000 |
| click |
id=ImportWizardForm_firstRowIsHeaderRow |
|
| type |
id=ImportWizardForm_file |
C:\selenium\dev8a\zurmo\app\protected\modules\import\tests\functional\files\importAccountsTest.csv |
| waitForCondition |
selenium.browserbot.getCurrentWindow().jQuery.active == 0 |
30000 |
| assertText |
link=Select Permissions |
Select Permissions |
| clickAndWait |
link=Select Permissions |
|
| waitForPageToLoad |
|
|
| waitForCondition |
selenium.browserbot.getCurrentWindow().jQuery.active == 0 |
30000 |
| verifyTextPresent |
Import Wizard - Select Permissions |
|
| click |
id=ImportWizardForm_explicitReadWriteModelPermissions_type_1 |
|
| 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=Name |
| waitForCondition |
selenium.browserbot.getCurrentWindow().jQuery.active == 0 |
30000 |
| click |
id=ImportWizardForm_column_0_mappingRulesData_NameModelAttributeDedupeMappingRuleForm_dedupeRule_1 |
|
| select |
id=ImportWizardForm_column_1_attributeIndexOrDerivedType |
label=Office Phone |
| waitForCondition |
selenium.browserbot.getCurrentWindow().jQuery.active == 0 |
30000 |
| select |
id=ImportWizardForm_column_2_attributeIndexOrDerivedType |
label=Office Fax |
| waitForCondition |
selenium.browserbot.getCurrentWindow().jQuery.active == 0 |
30000 |
| select |
id=ImportWizardForm_column_3_attributeIndexOrDerivedType |
label=Employees |
| waitForCondition |
selenium.browserbot.getCurrentWindow().jQuery.active == 0 |
30000 |
| select |
id=ImportWizardForm_column_4_attributeIndexOrDerivedType |
label=Website |
| waitForCondition |
selenium.browserbot.getCurrentWindow().jQuery.active == 0 |
30000 |
| select |
id=ImportWizardForm_column_5_attributeIndexOrDerivedType |
label=Annual Revenue |
| waitForCondition |
selenium.browserbot.getCurrentWindow().jQuery.active == 0 |
30000 |
| select |
id=ImportWizardForm_column_6_attributeIndexOrDerivedType |
label=Description |
| waitForCondition |
selenium.browserbot.getCurrentWindow().jQuery.active == 0 |
30000 |
| select |
id=ImportWizardForm_column_7_attributeIndexOrDerivedType |
label=Billing Address - City |
| waitForCondition |
selenium.browserbot.getCurrentWindow().jQuery.active == 0 |
30000 |
| select |
id=ImportWizardForm_column_8_attributeIndexOrDerivedType |
label=Billing Address - Country |
| waitForCondition |
selenium.browserbot.getCurrentWindow().jQuery.active == 0 |
30000 |
| select |
id=ImportWizardForm_column_9_attributeIndexOrDerivedType |
label=Billing Address - Postal Code |
| waitForCondition |
selenium.browserbot.getCurrentWindow().jQuery.active == 0 |
30000 |
| select |
id=ImportWizardForm_column_10_attributeIndexOrDerivedType |
label=Billing Address - State |
| waitForCondition |
selenium.browserbot.getCurrentWindow().jQuery.active == 0 |
30000 |
| select |
id=ImportWizardForm_column_11_attributeIndexOrDerivedType |
label=Billing Address - Street 1 |
| waitForCondition |
selenium.browserbot.getCurrentWindow().jQuery.active == 0 |
30000 |
| select |
id=ImportWizardForm_column_12_attributeIndexOrDerivedType |
label=Billing Address - Street 2 |
| waitForCondition |
selenium.browserbot.getCurrentWindow().jQuery.active == 0 |
30000 |
| select |
id=ImportWizardForm_column_13_attributeIndexOrDerivedType |
label=Primary Email - Email Address |
| waitForCondition |
selenium.browserbot.getCurrentWindow().jQuery.active == 0 |
30000 |
| click |
id=ImportWizardForm_column_13_mappingRulesData_EmailModelAttributeDedupeMappingRuleForm_dedupeRule_2 |
|
| select |
id=ImportWizardForm_column_14_attributeIndexOrDerivedType |
label=Primary Email - Is Invalid |
| waitForCondition |
selenium.browserbot.getCurrentWindow().jQuery.active == 0 |
30000 |
| select |
id=ImportWizardForm_column_15_attributeIndexOrDerivedType |
label=Primary Email - Opt Out |
| waitForCondition |
selenium.browserbot.getCurrentWindow().jQuery.active == 0 |
30000 |
| select |
id=ImportWizardForm_column_17_attributeIndexOrDerivedType |
label=Industry |
| waitForCondition |
selenium.browserbot.getCurrentWindow().jQuery.active == 0 |
30000 |
| select |
id=ImportWizardForm_column_18_attributeIndexOrDerivedType |
label=Type |
| waitForCondition |
selenium.browserbot.getCurrentWindow().jQuery.active == 0 |
30000 |
| select |
id=ImportWizardForm_column_19_attributeIndexOrDerivedType |
label=Owner |
| waitForCondition |
selenium.browserbot.getCurrentWindow().jQuery.active == 0 |
30000 |
| select |
id=ImportWizardForm_column_19_mappingRulesData_UserValueTypeModelAttributeMappingRuleForm_type |
label=Zurmo Username |
| 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=Map Fields |
|
| waitForTextPresent |
Import Wizard - Map Fields |
|
| assertChecked |
id=ImportWizardForm_column_0_mappingRulesData_NameModelAttributeDedupeMappingRuleForm_dedupeRule_1 |
|
| assertChecked |
id=ImportWizardForm_column_13_mappingRulesData_EmailModelAttributeDedupeMappingRuleForm_dedupeRule_2 |
|
| clickAndWait |
//div[@class='float-bar']/div/div/a[2]/span |
|
| waitForPageToLoad |
|
|
| waitForCondition |
selenium.browserbot.getCurrentWindow().jQuery.active == 0 |
30000 |
| assertText |
//form[@id='edit-form']/div[1]/div/ul/li[1]/strong |
3 |
| 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! Your import is complete. Below is a summary of the results. |
|
| assertText |
//form[@id='edit-form']/div[1]/div/ul/li[1]/strong |
3 |
| 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 |
| clickAndWait |
//div[@id='MenuView']/ul/li/a/span |
|
| waitForPageToLoad |
|
|
| waitForCondition |
selenium.browserbot.getCurrentWindow().jQuery.active == 0 |
30000 |
| open |
index.php/accounts/default |
|
| waitForPageToLoad |
|
|
| waitForCondition |
selenium.browserbot.getCurrentWindow().jQuery.active == 0 |
30000 |
| type |
id=AccountsSearchForm_anyMixedAttributes |
account1 |
| keyUp |
AccountsSearchForm_anyMixedAttributes |
\10 |
| waitForCondition |
selenium.browserbot.getCurrentWindow().jQuery.active == 0 |
30000 |
| waitForText |
//div[@id='list-view']/div[2]/table/tbody/tr[1]/td[3]/a |
account1 |