This commit is contained in:
Marc Christensen 2010-09-27 14:49:57 -06:00
Родитель 45e4a95648
Коммит 0c171b8bc6
3 изменённых файлов: 17 добавлений и 6 удалений

Просмотреть файл

@ -27,7 +27,13 @@ class be_0400_createUserTest(apacheTestCase):
sel.type("ctl00_cphAdmin_CreateUserWizard1_ctl02_Password", "mono")
sel.type("ctl00_cphAdmin_CreateUserWizard1_ctl02_ConfirmPassword", "mono")
sel.type("ctl00_cphAdmin_CreateUserWizard1_ctl02_Email", "mono@example.com")
sel.click("ctl00_cphAdmin_CreateUserWizard1_CustomNavContainer0_StepNextButtonButton")
if sel.is_element_present("ctl00_cphAdmin_CreateUserWizard1_CustomNavContainer0_StepNextButtonButton"):
element = "ctl00_cphAdmin_CreateUserWizard1_CustomNavContainer0_StepNextButtonButton"
elif sel.is_element_present("ctl00_cphAdmin_CreateUserWizard1_CustomNavigationTemplateContainerID0_StepNextButtonButton"):
element = "ctl00_cphAdmin_CreateUserWizard1_CustomNavigationTemplateContainerID0_StepNextButtonButton"
else:
element = "ctl00_cphAdmin_CreateUserWizard1_CustomNavContainer0_StepNextButtonButton"
sel.click(element)
sel.wait_for_page_to_load("30000")
except Exception,e:

Просмотреть файл

@ -23,18 +23,23 @@ class be_1100_ChangeUserProfileAsMonoUserTest(apacheTestCase):
sel.wait_for_page_to_load("30000")
for i in range(60):
try:
if sel.is_element_present("//a/span[text()='profiles']"): break
if sel.is_element_present("//a/span[text()='profiles']"):
element_1 = "//a/span[text()='profiles']"
break
elif sel.is_element_present("//a/span[text()='Profiles']") :
element_1 = "//a/span[text()='Profiles']"
break
except: pass
time.sleep(1)
else: self.fail("time out")
sel.click("//a/span[text()='profiles']")
else: self.fail("time out" + "Could not find element" + element_1)
sel.click(element_1)
sel.wait_for_page_to_load("30000")
for i in range(60):
try:
if sel.is_element_present("//input[@id='ctl00_cphAdmin_tbDisplayName']"): break
except: pass
time.sleep(1)
else: self.fail("time out")
else: self.fail("time out" + "Could not find element //input[@id='ctl00_cphAdmin_tbDisplayName']")
sel.type("//input[@id='ctl00_cphAdmin_tbDisplayName']", "Mono User")
sel.type("ctl00_cphAdmin_tbFirstName", "Mono")
sel.type("ctl00_cphAdmin_tbFirstName", "Rupert")

Просмотреть файл

@ -56,7 +56,7 @@ class be_1200_cleanUpTest(apacheTestCase):
else: self.fail("time out")
sel.click("//a/span[text()='Categories']")
sel.wait_for_page_to_load("30000")
sel.click("//table[@class='category']/tbody/tr/td[normalize-space(text())='Mono']/preceding-sibling::td/a[text()='Delete']")
sel.click("//tbody/tr/td[normalize-space(text())='Mono']/preceding-sibling::td/a[text()='Delete']")
sel.wait_for_page_to_load("30000")
############
mono.log("Delete the Mono Page")