本文整理汇总了Java中com.thoughtworks.selenium.SeleneseTestBase类的典型用法代码示例。如果您正苦于以下问题:Java SeleneseTestBase类的具体用法?Java SeleneseTestBase怎么用?Java SeleneseTestBase使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
SeleneseTestBase类属于com.thoughtworks.selenium包,在下文中一共展示了SeleneseTestBase类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: testAddingNamespace
import com.thoughtworks.selenium.SeleneseTestBase; //导入依赖的package包/类
protected void testAddingNamespace(Failable failable) throws Exception {
selectFrameIframePortlet();
waitAndCreateNew();
waitForPageToLoad();
assertElementPresentByXpath(SAVE_XPATH_2, "save button does not exist on the page");
//Enter details for Namespace.
waitAndTypeByXpath(DOC_DESCRIPTION_XPATH, "Adding PEANUTS");
waitAndTypeByXpath("//*[@id='document.documentHeader.explanation']", "I want to add PEANUTS to test KIM");
waitAndTypeByXpath(DOC_CODE_XPATH, "PEANUTS");
waitAndTypeByXpath("//input[@id='document.newMaintainableObject.name']", "The Peanuts Gang");
checkByXpath("//input[@id='document.newMaintainableObject.active']");
waitAndClickByXpath(SAVE_XPATH_2);
waitForPageToLoad();
checkForIncidentReport();
assertDocumentStatusSaved();
//checks it is saved and initiator is admin.
SeleneseTestBase.assertEquals(DOC_STATUS_SAVED, driver.findElement(By.xpath(
"//table[@class='headerinfo']/tbody/tr[1]/td[2]")).getText());
SeleneseTestBase.assertEquals("admin", driver.findElement(By.xpath(
"//table[@class='headerinfo']/tbody/tr[2]/td[1]/a")).getText());
}
开发者ID:aapotts,项目名称:kuali_rice,代码行数:24,代码来源:WebDriverLegacyITBase.java
示例2: testAgendaEditRuleRefreshIT
import com.thoughtworks.selenium.SeleneseTestBase; //导入依赖的package包/类
protected void testAgendaEditRuleRefreshIT() throws Exception {
selectFrameIframePortlet();
waitAndClickByXpath("//div[@class='uif-boxLayout uif-horizontalBoxLayout clearfix']/button[1]"); // jiraAwareWaitAndClick("id=32");
Thread.sleep(3000);
waitAndClickByXpath("//a[@title='edit Agenda Definition with Agenda Id=T1000']",
"Does user have edit permissions?"); // jiraAwareWaitAndClick("id=194_line0");
checkForIncidentReport("");
Thread.sleep(3000);
waitAndClickByXpath("//li/a[@class='agendaNode ruleNode']"); // jiraAwareWaitAndClick("//li[@id='473_node_0_parent_root']/a");
waitAndClickByXpath("//li/a[@class='agendaNode logicNode whenTrueNode']");
waitAndClickByLinkText("[-] collapse all");
// click refresh several times
for (int i = 0; i < 6; i++) {
for (int second = 0;; second++) {
if (second >= waitSeconds)
SeleneseTestBase.fail(TIMEOUT_MESSAGE);
try {
if (isElementPresent(".kr-refresh-button"))
break;
} catch (Exception e) {}
Thread.sleep(1000);
}
waitAndClick("button.kr-refresh-button");
}
}
开发者ID:aapotts,项目名称:kuali_rice,代码行数:27,代码来源:WebDriverLegacyITBase.java
示例3: testConfigParamaterBlanketApprove
import com.thoughtworks.selenium.SeleneseTestBase; //导入依赖的package包/类
protected void testConfigParamaterBlanketApprove() throws Exception {
selectFrameIframePortlet();
waitAndCreateNew();
String docId = waitForDocId();
waitAndTypeByXpath(DOC_DESCRIPTION_XPATH, "Validation Test Parameter ");
assertBlanketApproveButtonsPresent();
SeleneseTestBase.assertEquals("", getTextByName(CANCEL_NAME));
selectByXpath("//select[@id='document.newMaintainableObject.namespaceCode']", "KR-NS - Kuali Nervous System");
String componentLookUp = "//input[@name='methodToCall.performLookup.(!!org.kuali.rice.coreservice.impl.component.ComponentBo!!).(((code:document.newMaintainableObject.componentCode,namespaceCode:document.newMaintainableObject.namespaceCode,))).((`document.newMaintainableObject.componentCode:code,document.newMaintainableObject.namespaceCode:namespaceCode,`)).((<>)).(([])).((**)).((^^)).((&&)).((//)).((~~)).(::::;"
+ getBaseUrlString() + "/kr/lookup.do;::::).anchor4']";
waitAndClickByXpath(componentLookUp);
waitAndClickSearch();
waitAndClickReturnValue();
String dtsTwo = ITUtil.createUniqueDtsPlusTwoRandomChars();
String parameterName = "ValidationTestParameter" + dtsTwo;
waitAndTypeByXpath("//input[@id='document.newMaintainableObject.name']", parameterName);
waitAndTypeByXpath("//textarea[@id='document.newMaintainableObject.description']",
"Validation Test Parameter Description" + dtsTwo);
selectByXpath("//select[@id='document.newMaintainableObject.parameterTypeCode']", "Document Validation");
waitAndClickByXpath("//input[@id='document.newMaintainableObject.evaluationOperatorCodeAllowed']");
waitForPageToLoad();
blanketApproveTest();
assertDocFinal(docId);
}
开发者ID:aapotts,项目名称:kuali_rice,代码行数:25,代码来源:WebDriverLegacyITBase.java
示例4: testDocTypeLookup
import com.thoughtworks.selenium.SeleneseTestBase; //导入依赖的package包/类
protected void testDocTypeLookup() throws Exception {
selectFrameIframePortlet();
waitAndClickByXpath("//input[@title='Search Parent Name']");
waitForPageToLoad();
waitAndClickByXpath(SAVE_XPATH_3);
waitAndClickByXpath("//table[@id='row']/tbody/tr[contains(td[3],'RiceDocument')]/td[1]/a");
waitForPageToLoad();
waitAndClickByXpath(SAVE_XPATH_3);
SeleneseTestBase.assertEquals("RiceDocument", getTextByXpath("//table[@id='row']/tbody/tr/td[4]/a"));
waitAndClickByName("methodToCall.clearValues");
waitAndTypeByName("name", "Kuali*D");
waitAndClickByXpath(SAVE_XPATH_3);
assertElementPresentByXpath("//table[@id='row']/tbody/tr[contains(td[3], 'KualiDocument')]");
String docIdOld = getTextByXpath("//table[@id='row']/tbody/tr[contains(td[3], 'KualiDocument')]/td[2]/a");
waitAndClickByName("methodToCall.clearValues");
waitAndTypeByName("label", "KualiDocument");
waitAndClickByXpath(SAVE_XPATH_3);
assertElementPresentByXpath("//table[@id='row']/tbody/tr[contains(td[5], 'KualiDocument')]");
waitAndClickByName("methodToCall.clearValues");
waitAndTypeByName("documentTypeId", docIdOld);
waitAndClickByXpath(SAVE_XPATH_3);
assertElementPresentByXpath("//table[@id='row']/tbody/tr[contains(td[2], '" + docIdOld + "')]");
}
开发者ID:aapotts,项目名称:kuali_rice,代码行数:24,代码来源:WebDriverLegacyITBase.java
示例5: testEditRouteRulesDelegation
import com.thoughtworks.selenium.SeleneseTestBase; //导入依赖的package包/类
protected void testEditRouteRulesDelegation() throws Exception {
waitForPageToLoad();
Thread.sleep(3000);
SeleneseTestBase.assertEquals("Kuali Portal Index", getTitle());
selectFrameIframePortlet();
waitAndClickSearch();
waitForPageToLoad();
Thread.sleep(3000);
waitAndClickEdit();
waitForPageToLoad();
Thread.sleep(3000);
SeleneseTestBase.assertTrue(isElementPresentByName(CANCEL_NAME));
waitAndClickCancel();
waitForPageToLoad();
Thread.sleep(3000);
waitAndClickByName("methodToCall.processAnswer.button0");
waitForPageToLoad();
passed();
}
开发者ID:aapotts,项目名称:kuali_rice,代码行数:20,代码来源:WebDriverLegacyITBase.java
示例6: testSubCollectionSize
import com.thoughtworks.selenium.SeleneseTestBase; //导入依赖的package包/类
protected void testSubCollectionSize() throws Exception {
checkForIncidentReport(COLLECTIONS_LINK_TEXT);
// click on collections page link
waitAndClickByLinkText(COLLECTIONS_LINK_TEXT);
// wait for collections page to load by checking the presence of a sub collection line item
for (int second = 0;; second++) {
if (second >= waitSeconds)
fail(TIMEOUT_MESSAGE);
try {
if (getText(SUB_COLLECTION_UIF_DISCLOSURE_SPAN_UIF_HEADER_TEXT_SPAN_XPATH).equals("SubCollection - (3 lines)"))
{
break;
}
} catch (Exception e) {}
Thread.sleep(1000);
}
// verify that sub collection sizes are displayed as expected
SeleneseTestBase.assertEquals("SubCollection - (3 lines)", getText(SUB_COLLECTION_UIF_DISCLOSURE_SPAN_UIF_HEADER_TEXT_SPAN_XPATH));
SeleneseTestBase.assertEquals("SubCollection - (2 lines)", getTextByXpath(
"//a[@id='subCollection1_line1_toggle']/span"));
}
开发者ID:aapotts,项目名称:kuali_rice,代码行数:25,代码来源:WebDriverLegacyITBase.java
示例7: testAddBlankLine
import com.thoughtworks.selenium.SeleneseTestBase; //导入依赖的package包/类
/**
* Test adding a column of values to the Add Blank Line Tests Table Layout
*/
protected void testAddBlankLine() throws Exception {
waitAndClickByLinkText("Add Blank Line");
waitAndClickByXpath("//button[contains(.,'Add Line')]");
Thread.sleep(3000); // TODO a wait until the loading.gif isn't visible woudl be better
assertElementPresentByName("list1[0].field1");
assertTableLayout();
SeleneseTestBase.assertEquals("", getAttributeByName("list1[0].field1", "value"));
SeleneseTestBase.assertEquals("", getAttributeByName("list1[0].field2", "value"));
SeleneseTestBase.assertEquals("", getAttributeByName("list1[0].field3", "value"));
SeleneseTestBase.assertEquals("", getAttributeByName("list1[0].field4", "value"));
SeleneseTestBase.assertEquals("5", getAttributeByName("list1[1].field1", "value"));
SeleneseTestBase.assertEquals("6", getAttributeByName("list1[1].field2", "value"));
SeleneseTestBase.assertEquals("7", getAttributeByName("list1[1].field3", "value"));
SeleneseTestBase.assertEquals("8", getAttributeByName("list1[1].field4", "value"));
SeleneseTestBase.assertEquals("Total: 419", driver.findElement(By.xpath("//fieldset/div/div[2]/div[2]")).getText());
waitAndTypeByName("list1[0].field1", "1");
waitAndTypeByName("list1[0].field2", "1");
waitAndTypeByName("list1[0].field3", "1");
waitAndTypeByName("list1[0].field4", "1");
SeleneseTestBase.assertEquals("Total: 420", driver.findElement(By.xpath("//fieldset/div/div[2]/div[2]")).getText());
}
开发者ID:aapotts,项目名称:kuali_rice,代码行数:25,代码来源:WebDriverLegacyITBase.java
示例8: testColumnSequence
import com.thoughtworks.selenium.SeleneseTestBase; //导入依赖的package包/类
protected void testColumnSequence() throws Exception {
waitAndClickByLinkText("Column Sequence");
Thread.sleep(3000);
waitAndTypeByName("newCollectionLines['list1'].field1", "1");
waitAndTypeByName("newCollectionLines['list1'].field2", "1");
waitAndTypeByName("newCollectionLines['list1'].field3", "1");
waitAndTypeByName("newCollectionLines['list1'].field4", "1");
waitAndClick(By.id("Collections-ColumnSequence-TableDefault_add"));
Thread.sleep(3000);
//Check if row has been added really or not
testIfRowHasBeenAdded();
//Check for the added if delete is present or not
SeleneseTestBase.assertTrue(isElementPresentByXpath("//div[@id='Collections-ColumnSequence-TableDefault_disclosureContent']/div[@class='dataTables_wrapper']/table/tbody/tr[2]/td[6]/div/fieldset/div/div[@class='uif-boxLayout uif-horizontalBoxLayout clearfix']/button"));
}
开发者ID:aapotts,项目名称:kuali_rice,代码行数:17,代码来源:WebDriverLegacyITBase.java
示例9: testSequencerow
import com.thoughtworks.selenium.SeleneseTestBase; //导入依赖的package包/类
protected void testSequencerow() throws Exception {
waitAndClickByLinkText("Save Row");
Thread.sleep(3000);
waitAndTypeByName("newCollectionLines['list1'].field1", "1");
waitAndTypeByName("newCollectionLines['list1'].field2", "1");
waitAndTypeByName("newCollectionLines['list1'].field3", "1");
waitAndTypeByName("newCollectionLines['list1'].field4", "1");
waitAndClickByXpath("//button[contains(.,'add')]");
Thread.sleep(3000);
//Check if row has been added really or not
testIfRowHasBeenAdded();
//Check for the added if delete is present or not
SeleneseTestBase.assertTrue(isElementPresentByXpath("//div[@id='Collections-SaveRow-Table_disclosureContent']/div[@class='dataTables_wrapper']/table/tbody/tr[2]/td[6]/div/fieldset/div/div[@class='uif-boxLayout uif-horizontalBoxLayout clearfix']/button"));
// SeleneseTestBase.assertTrue(isElementPresentByXpath("//div[@id='Collections-SaveRow-Table_disclosureContent']/div[@class='dataTables_wrapper']/table/tbody/tr[2]/td[6]/div/fieldset/div/div[@class='uif-boxLayout uif-horizontalBoxLayout clearfix']/button[@class='uif-action uif-secondaryActionButton uif-smallActionButton uif-saveLineAction']"));
}
开发者ID:aapotts,项目名称:kuali_rice,代码行数:18,代码来源:WebDriverLegacyITBase.java
示例10: testAddLineWithSpecificTime
import com.thoughtworks.selenium.SeleneseTestBase; //导入依赖的package包/类
protected void testAddLineWithSpecificTime(String idPrefix, String addLineIdSuffix) throws Exception {
waitForElementPresentByXpath("//span[@id='" + idPrefix + "TextInputField_label_span']");
confirmAddLineControlsPresent(idPrefix, addLineIdSuffix);
String startTimeId = "//*[@id='" + idPrefix + "StartTime" + addLineIdSuffix + "']";
String inputTime = "7:06";
waitAndTypeByXpath(startTimeId, inputTime);
String amPmSelectLocator = "//*[@id='" + idPrefix + "StartTimeAmPm" + addLineIdSuffix + "']";
selectByXpath(amPmSelectLocator, "PM");
SeleneseTestBase.assertEquals("PM", getAttributeByXpath(amPmSelectLocator, "value"));
Thread.sleep(5000); //allow for ajax refresh
waitAndClickByXpath("//button");
Thread.sleep(5000); //allow for line to be added
//confirm that line has been added
SeleneseTestBase.assertTrue("line (//input[@value='7:06'])is not present https://jira.kuali.org/browse/KULRICE-8162 Configuration Test View Time Info add line button doesn't addline",
isElementPresentByXpath("//input[@value='7:06']"));
}
开发者ID:aapotts,项目名称:kuali_rice,代码行数:18,代码来源:WebDriverLegacyITBase.java
示例11: testWorkFlowRouteRulesCreateNew
import com.thoughtworks.selenium.SeleneseTestBase; //导入依赖的package包/类
protected void testWorkFlowRouteRulesCreateNew() throws Exception {
waitForPageToLoad();
Thread.sleep(5000);
SeleneseTestBase.assertEquals("Kuali Portal Index", getTitle());
selectFrameIframePortlet();
waitAndClickCreateNew();
waitForPageToLoad();
Thread.sleep(3000);
waitAndClickByName(CANCEL_NAME,"https://jira.kuali.org/browse/KULRICE-8161 Work Flow Route Rules cancel new yields 404 not found");
// KULRICE-7753 : WorkFlowRouteRulesIT cancel confirmation missing from create new Route Rules.
waitForPageToLoad();
Thread.sleep(3000);
waitAndClickByName("methodToCall.processAnswer.button0",
"https://jira.kuali.org/browse/KULRICE-7753 : WorkFlowRouteRulesIT cancel confirmation missing from create new Route Rules.");
passed();
}
开发者ID:aapotts,项目名称:kuali_rice,代码行数:18,代码来源:WebDriverLegacyITBase.java
示例12: testWorkFlowRouteRulesEditRouteRules
import com.thoughtworks.selenium.SeleneseTestBase; //导入依赖的package包/类
/**
* tests that a Routing Rule maintenance document is created for an edit operation originating
* from a lookup screen
*/
protected void testWorkFlowRouteRulesEditRouteRules() throws Exception {
waitForPageToLoad();
SeleneseTestBase.assertEquals("Kuali Portal Index", getTitle());
selectFrameIframePortlet();
waitAndClickSearch();
waitAndClickEdit();
waitForPageToLoad();
selectFrameIframePortlet();
Thread.sleep(3000);
waitAndClickCancel();
waitForPageToLoad();
Thread.sleep(3000);
waitAndClickByName("methodToCall.processAnswer.button0");
passed();
}
开发者ID:aapotts,项目名称:kuali_rice,代码行数:20,代码来源:WebDriverLegacyITBase.java
示例13: testCreateNewComponent
import com.thoughtworks.selenium.SeleneseTestBase; //导入依赖的package包/类
protected String testCreateNewComponent(String componentName, String componentCode, String message) throws Exception {
waitForPageToLoad();
String docId = waitForDocId();
//Enter details for Parameter.
waitAndTypeByName("document.documentHeader.documentDescription", "Adding Test Component");
selectOptionByName("document.newMaintainableObject.namespaceCode", "KR-IDM");
waitAndTypeByName("document.newMaintainableObject.code", componentCode);
waitAndTypeByName("document.newMaintainableObject.name", componentName);
checkByName("document.newMaintainableObject.active");
waitAndClickSave();
waitAndClickSubmit();
waitForPageToLoad();
assertElementPresentByXpath(DOC_SUBMIT_SUCCESS_MSG_XPATH, CREATE_NEW_DOCUMENT_NOT_SUBMITTED_SUCCESSFULLY_MESSAGE_TEXT + message);
selectTopFrame();
waitAndClickDocSearchTitle();
waitForPageToLoad();
selectFrameIframePortlet();
waitAndClickSearch();
Thread.sleep(2000);
SeleneseTestBase.assertEquals(docId, getTextByXpath(DOC_ID_XPATH_3));
SeleneseTestBase.assertEquals(DOC_STATUS_FINAL, getTextByXpath(DOC_STATUS_XPATH_2));
selectTopFrame();
return docId;
}
开发者ID:aapotts,项目名称:kuali_rice,代码行数:26,代码来源:WebDriverLegacyITBase.java
示例14: testLookUpComponent
import com.thoughtworks.selenium.SeleneseTestBase; //导入依赖的package包/类
protected void testLookUpComponent(String docId, String componentName, String componentCode) throws Exception {
selectFrameIframePortlet();
//Lookup
waitAndTypeByName("name", componentName);
waitAndClickSearch();
isElementPresentByLinkText(componentName);
waitAndClickByLinkText(componentName);
waitForPageToLoad();
Thread.sleep(2000);
switchToWindow("Kuali :: Inquiry");
Thread.sleep(2000);
SeleneseTestBase.assertEquals(componentName, getTextByXpath("//div[@class='tab-container']/table//span[@id='name.div']").trim());
SeleneseTestBase.assertEquals(componentCode, getTextByXpath("//div[@class='tab-container']/table//span[@id='code.div']").trim());
waitAndClickCloseWindow();
switchToWindow("null");
}
开发者ID:aapotts,项目名称:kuali_rice,代码行数:17,代码来源:WebDriverLegacyITBase.java
示例15: testEditComponent
import com.thoughtworks.selenium.SeleneseTestBase; //导入依赖的package包/类
protected void testEditComponent(String docId, String componentName, String componentCode) throws Exception {
selectFrameIframePortlet();
waitAndClickEdit();
waitForPageToLoad();
docId = waitForDocId();
waitAndTypeByName("document.documentHeader.documentDescription", "Editing Test Component");
clearTextByName("document.newMaintainableObject.name");
waitAndTypeByName("document.newMaintainableObject.name", componentName);
waitAndClickSave();
waitAndClickSubmit();
waitForPageToLoad();
assertElementPresentByXpath(DOC_SUBMIT_SUCCESS_MSG_XPATH,"Document is not submitted successfully");
selectTopFrame();
waitAndClickDocSearchTitle();
waitForPageToLoad();
selectFrameIframePortlet();
waitAndClickSearch();
Thread.sleep(2000);
SeleneseTestBase.assertEquals(docId, getTextByXpath(DOC_ID_XPATH_3));
SeleneseTestBase.assertEquals(DOC_STATUS_FINAL, getTextByXpath(DOC_STATUS_XPATH_2));
selectTopFrame();
}
开发者ID:aapotts,项目名称:kuali_rice,代码行数:23,代码来源:WebDriverLegacyITBase.java
示例16: testCopyComponent
import com.thoughtworks.selenium.SeleneseTestBase; //导入依赖的package包/类
protected void testCopyComponent(String docId, String componentName, String componentCode) throws Exception {
selectFrameIframePortlet();
waitAndClickCopy();
waitForPageToLoad();
docId = waitForDocId();
waitAndTypeByName("document.documentHeader.documentDescription", "Copying Test Component");
selectOptionByName("document.newMaintainableObject.namespaceCode", "KR-IDM");
waitAndTypeByName("document.newMaintainableObject.code", componentCode);
clearTextByName("document.newMaintainableObject.name");
waitAndTypeByName("document.newMaintainableObject.name", componentName);
waitAndClickSave();
waitAndClickSubmit();
waitForPageToLoad();
checkForDocError();
assertElementPresentByXpath(DOC_SUBMIT_SUCCESS_MSG_XPATH,"Document is not submitted successfully");
selectTopFrame();
waitAndClickDocSearchTitle();
waitForPageToLoad();
selectFrameIframePortlet();
waitAndClickSearch();
Thread.sleep(2000);
SeleneseTestBase.assertEquals(docId, getTextByXpath(DOC_ID_XPATH_3));
SeleneseTestBase.assertEquals(DOC_STATUS_FINAL, getTextByXpath(DOC_STATUS_XPATH_2));
selectTopFrame();
}
开发者ID:aapotts,项目名称:kuali_rice,代码行数:26,代码来源:WebDriverLegacyITBase.java
示例17: testDisplayOnlyTooltipHelp
import com.thoughtworks.selenium.SeleneseTestBase; //导入依赖的package包/类
/**
* Test the tooltip help on the sub-section and fields that are display only
*/
protected void testDisplayOnlyTooltipHelp() throws Exception {
// verify that no tooltips are displayed initially
if (isElementPresentByXpath("//td[contains(text(),'Sample text for sub-section help')]")) {
SeleneseTestBase.assertFalse(isVisible("//td[contains(text(),'Sample text for sub-section help')]"));
}
if (isElementPresentByXpath("//td[contains(text(),'Sample text for read only field help')]")) {
SeleneseTestBase.assertFalse(isVisible("//td[contains(text(),'Sample text for read only field help')]"));
}
// test tooltip help of sub-section header
fireMouseOverEventByXpath("//span[contains(text(),'Display only fields')]");
SeleneseTestBase.assertTrue(isVisibleByXpath("//td[contains(text(),'Sample text for sub-section help')]"));
String javascript="var element = document.getElementsByClassName('jquerybubblepopup jquerybubblepopup-black');" +
"element[0].style.display='none'";
((JavascriptExecutor) driver).executeScript(javascript);
SeleneseTestBase.assertFalse(isVisibleByXpath("//td[contains(text(),'Sample text for sub-section help')]"));
// test tooltip help of display only data field
fireMouseOverEventByXpath("//label[@for='display-field_control']");
SeleneseTestBase.assertTrue(isVisibleByXpath("//td[contains(text(),'Sample text for read only field help')]"));
javascript="var element = document.getElementsByClassName('jquerybubblepopup jquerybubblepopup-black');" +
"element[0].style.display='none'";
((JavascriptExecutor) driver).executeScript(javascript);
}
开发者ID:aapotts,项目名称:kuali_rice,代码行数:29,代码来源:WebDriverLegacyITBase.java
示例18: testMissingTooltipHelp
import com.thoughtworks.selenium.SeleneseTestBase; //导入依赖的package包/类
/**
* Test the tooltip help on the section and fields with no content
*/
protected void testMissingTooltipHelp() throws Exception {
// verify that no tooltips are displayed initially
SeleneseTestBase.assertFalse(isElementPresentByXpath("//*[@class='jquerybubblepopup jquerybubblepopup-black']"));
// verify that no external help exist
SeleneseTestBase.assertFalse(isElementPresent("#ConfigurationTestView-Help-Section2 input.uif-helpImage"));
// test tooltip help of section header
fireMouseOverEventByXpath("//div[@id='ConfigurationTestView-Help-Section2']/div");
SeleneseTestBase.assertFalse(isElementPresentByXpath("//*[@class='jquerybubblepopup jquerybubblepopup-black']"));
SeleneseTestBase.assertFalse(isElementPresentByXpath("//*[@class='jquerybubblepopup jquerybubblepopup-black']"));
// test tooltip help of field
fireMouseOverEventByXpath("//label[@id='missing-tooltip-help_label']");
SeleneseTestBase.assertFalse(isElementPresentByXpath("//*[@class='jquerybubblepopup jquerybubblepopup-black']"));
SeleneseTestBase.assertFalse(isElementPresentByXpath("//*[@class='jquerybubblepopup jquerybubblepopup-black']"));
}
开发者ID:aapotts,项目名称:kuali_rice,代码行数:21,代码来源:WebDriverLegacyITBase.java
示例19: testMissingExternalHelp2
import com.thoughtworks.selenium.SeleneseTestBase; //导入依赖的package包/类
/**
* Test the external help on the section and fields with missing help URL
*/
protected void testMissingExternalHelp2() throws Exception {
// test external help of section is not rendered
SeleneseTestBase.assertFalse(isElementPresent(By.cssSelector("input[title=\"Help for Missing External Help\"]")));
// test external help of field with blank externalHelpURL is not rendered
SeleneseTestBase.assertFalse(isElementPresentByXpath("//div[@id='external-help-externalHelpUrl-empty']/*[@class='uif-helpImage']"));
// test external help of field with empty helpDefinition is not rendered
SeleneseTestBase.assertFalse(isElementPresentByXpath("//div[@id='external-help-helpdefinition-empty']/*[@class='uif-helpImage']"));
// test external help of field with missing system parameter is not rendered
SeleneseTestBase.assertFalse(isElementPresentByXpath("//div[@id='external-help-system-parm-missing']/*[@class='uif-helpImage']"));
// test external help of standalone help widget is not rendered
SeleneseTestBase.assertFalse(isElementPresentByXpath("//div[@id='standalone-external-help-missing']"));
}
开发者ID:aapotts,项目名称:kuali_rice,代码行数:21,代码来源:WebDriverLegacyITBase.java
示例20: testVerifyAddDeleteFiscalOfficerLegacy
import com.thoughtworks.selenium.SeleneseTestBase; //导入依赖的package包/类
protected void testVerifyAddDeleteFiscalOfficerLegacy() throws Exception {
selectFrameIframePortlet();
checkForIncidentReport("testVerifyAddDeleteFiscalOfficerLegacy");
waitAndTypeByName("document.documentHeader.documentDescription", ITUtil.createUniqueDtsPlusTwoRandomChars());
waitAndTypeByName("newCollectionLines['document.newMaintainableObject.dataObject.fiscalOfficer.accounts'].number","1234567890");
waitAndTypeByName("newCollectionLines['document.newMaintainableObject.dataObject.fiscalOfficer.accounts'].foId", "2");
waitAndClickByXpath("//button[@data-loadingmessage='Adding Line...']");
waitForElementPresentByName("document.newMaintainableObject.dataObject.fiscalOfficer.accounts[0].number");
SeleneseTestBase.assertEquals("1234567890", getAttributeByName(
"document.newMaintainableObject.dataObject.fiscalOfficer.accounts[0].number", "value"));
SeleneseTestBase.assertEquals("2", getAttributeByName(
"document.newMaintainableObject.dataObject.fiscalOfficer.accounts[0].foId", "value"));
waitAndClickByXpath("//button[@data-loadingmessage='Deleting Line...']");
Thread.sleep(3000);
SeleneseTestBase.assertEquals(Boolean.FALSE, (Boolean) isElementPresentByName(
"document.newMaintainableObject.dataObject.fiscalOfficer.accounts[0].number"));
passed();
}
开发者ID:aapotts,项目名称:kuali_rice,代码行数:19,代码来源:WebDriverLegacyITBase.java
注:本文中的com.thoughtworks.selenium.SeleneseTestBase类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论