This chapter provides a complete listing and reference for the methods in the OpenScript SiebelFTService Class of Siebel Functional Module Application Programming Interface (API).
The Siebel Functional Test Module provides support for functional testing of Siebel web applications that use Standard Siebel High Interactivity (HI) and Standard Interactivity (SI) components. If the Siebel application uses the Siebel OpenUI, use the OpenScript Web Functional Testing module to record Siebel OpenUI scripts and use the OpenScript Siebel OpenUI function library to customize scripts. See Chapter 21, "Siebel OpenUI Function Library" for information about the function library.
The following section provides an alphabetical listing of the methods in the OpenScript SiebelFTService API.
The following table lists the SiebelFTService API methods in alphabetical order.
Table 19-1 List of SiebelFTService Methods
Method | Description |
---|---|
Creates a Siebel Applet element. |
|
Creates a Siebel Application element. |
|
Construct property data of a single attribute. |
|
Utility function to return a list of property tests. |
|
Creates a Siebel Button element. |
|
Creates a Siebel Calculator element. |
|
Creates a Siebel Calendar element. |
|
Construct a test data of a table cell. |
|
Utility function to return a list of cell tests. |
|
Creates a Siebel Currency element. |
|
Creates a generic Siebel element. |
|
Checks for the existence of a Siebel control. |
|
Creates a Siebel List element. |
|
Creates a Siebel Menu element. |
|
Creates a Siebel PageTabs element. |
|
Creates a Siebel PDQ element. |
|
Creates a Siebel RichText element. |
|
Creates a Siebel Screen element. |
|
Creates a Siebel ScreenViews element. |
|
Creates a Siebel Text element. |
|
Creates a Siebel TextArea element. |
|
Creates a Siebel Threadbar element. |
|
Creates a Siebel Toolbar element. |
|
Creates a Siebel Tree element. |
The following sections provide detailed reference information for each method and enum in the SiebelFTService Class of Siebel Functional Module Application Programming Interface.
Creates a Siebel Applet element.
The siebelFT.applet method has the following command format(s):
siebelFT.applet(path);
siebelFT.applet(recid, path);
a String specifying the path of the element.
the ID of a previously recorded navigation, used for comparison purposes. May be null
.
Performs an action on a Siebel Applet element.
String SiebApplet="/siebelft:cas[@ClassName='SiebApplication' " +
"and @RepositoryName='Siebel Universal Agent']" +
"/siebelft:cas[@ClassName='SiebScreen' " +
"and @RepositoryName='Opportunities Screen']" +
"/siebelft:cas[@ClassName='SiebView' " +
"and @RepositoryName='Opportunity List View']" +
"/siebelft:cas[@ClassName='SiebApplet' " +
"and @RepositoryName='Opportunity Form Applet - Child']";
try{
String result=siebelFT.applet(10, SiebApplet)
.childPathFromRepositoryName("SiebTextArea", "Description");
String expected="/siebelft:cas[@ClassName='SiebApplication' " +
"and @RepositoryName='Siebel Universal Agent']" +
"/siebelft:cas[@ClassName='SiebScreen' " +
"and @RepositoryName='Opportunities Screen']" +
"/siebelft:cas[@ClassName='SiebView' " +
"and @RepositoryName='Opportunity List View']" +
"/siebelft:cas[@ClassName='SiebApplet' " +
"and @RepositoryName='Opportunity Form Applet - Child']" +
"/siebelft:cas[@ClassName='SiebTextArea' " +
"and @RepositoryName='Description']";
if (!result.equals(expected)) {
warn("childPathFromRepositoryName returned " + result);
}
}catch(Exception exp) {}
Creates a Siebel Application element.
The siebelFT.application method has the following command format(s):
siebelFT.application(path);
siebelFT.application(recid, path);
a String specifying the path of the element.
the ID of a previously recorded navigation, used for comparison purposes. May be null
.
Performs an action on a Siebel Application element.
String SiebApplication="/siebelft:cas[@ClassName='SiebApplication' " +
"and @RepositoryName='Siebel Universal Agent']";
try{
String expected="/siebelft:cas[@ClassName='SiebApplication' " +
"and @RepositoryName='Siebel Universal Agent']" +
"/siebelft:cas[@ClassName='SiebScreen' " +
"and @RepositoryName='Web Call Center Home Screen']";
String result=siebelFT.application(10, SiebApplication)
.childPathFromRepositoryName("SiebScreen", "Web Call Center Home Screen");
if (!result.equals(expected)) {
warn("childPathFromRepositoryName returned " + result);
}
}catch(Exception exp) {}
Construct property data of a single attribute.
The siebelFT.attribute method has the following command format(s):
siebelFT.attribute(property, expectedValue, operator);
A String specifying the property to test.
a String specifying ther expected value.
a TestOperator that defines the type and the match approach of the data.
Specifies individual Siebel element attributes.
String path="/siebelft:cas[@ClassName='SiebApplication' " + "and @RepositoryName='Siebel Universal Agent']" + "/siebelft:cas[@ClassName='SiebMenu' " + "and @RepositoryName='SiebMenu']"; siebelFT.menu(path).assertAttributes("attributes", siebelFT.attributes(siebelFT.attribute("ClassName", "SiebMenu", TestOperator.StringExact), siebelFT..attribute("RepositoryName", "SiebMenu", TestOperator.StringExact), siebelFT..attribute("UIName", "Menu", TestOperator.StringExact), siebelFT..attribute("Count", "60", TestOperator.StringExact))); siebelFT.menu(path).assertAttribute("attribute", "UIName", "Menu", TestOperator.StringExact); try{ boolean result=siebelFT.element(path).exists(); if (!result) { warn("exists returned " + result); } }catch(Exception exp) {}
Utility function to return a list of property tests.
The siebelFT.attributes method has the following command format(s):
siebelFT.attributes(tests);
Specifies a set of Siebel element attributes.
String path="/siebelft:cas[@ClassName='SiebApplication' " +
"and @RepositoryName='Siebel Universal Agent']" +
"/siebelft:cas[@ClassName='SiebMenu' " +
"and @RepositoryName='SiebMenu']";
siebelFT.menu(path).assertAttributes("attributes",
siebelFT.attributes(siebelFT.attribute("ClassName",
"SiebMenu", TestOperator.StringExact),
siebelFT.attribute("RepositoryName", "SiebMenu",
TestOperator.StringExact),
siebelFT.attribute("UIName", "Menu",
TestOperator.StringExact),
siebelFT.attribute("Count", "60",
TestOperator.StringExact)));
siebelFT.menu(path).assertAttribute("attribute", "UIName", "Menu",
TestOperator.StringExact);
try{
boolean result=siebelFT.element(path).exists();
if (!result) {
warn("exists returned " + result);
}
}catch(Exception exp) {}
Creates a Siebel Button element.
The siebelFT.button method has the following command format(s):
siebelFT.button(path);
siebelFT.button(recid, path);
a String specifying the path of the element.
the ID of a previously recorded navigation, used for comparison purposes. May be null
.
Performs an action on a Siebel Button element.
String SiebButton="/siebelft:cas[@ClassName='SiebApplication' " + "and @RepositoryName='Siebel Universal Agent']" + "/siebelft:cas[@ClassName='SiebScreen' " + "and @RepositoryName='Accounts Screen']" + "/siebelft:cas[@ClassName='SiebView' " + "and @RepositoryName='Account List View']" + "/siebelft:cas[@ClassName='SiebApplet' " + "and @RepositoryName='Account Entry Applet']" + "/siebelft:cas[@ClassName='SiebButton' " + "and @RepositoryName='NewRecord']"; try{ Boolean result=siebelFT.button(10, SiebButton).isEnabled(); if (!result) { warn("isEnabled() returned " + result); } }catch(Exception exp) {} siebelFT.button(15, "/siebelft:cas[@ClassName='SiebApplication' " + "and @RepositoryName='Siebel Universal Agent']" + "/siebelft:cas[@ClassName='SiebScreen' " + "and @RepositoryName='Accounts Screen']" + "/siebelft:cas[@ClassName='SiebView' " + "and @RepositoryName='Account List View']" + "/siebelft:cas[@ClassName='SiebApplet' " + "and @RepositoryName='Account Entry Applet']" + "/siebelft:cas[@ClassName='SiebButton' " + "and @RepositoryName='DeleteRecord']") .click();
Creates a Siebel Calculator element.
The siebelFT.calculator method has the following command format(s):
siebelFT.calculator(path);
siebelFT.calculator(recid, path);
a String specifying the path of the element.
the ID of a previously recorded navigation, used for comparison purposes. May be null
.
Performs an action on a Siebel Calculator element.
String SiebCurrency="/siebelft:cas[@ClassName='SiebApplication' " + "and @RepositoryName='Siebel Universal Agent']" + "/siebelft:cas[@ClassName='SiebScreen' " + "and @RepositoryName='Opportunities Screen']" + "/siebelft:cas[@ClassName='SiebView' " + "and @RepositoryName='Opportunity List View']" + "/siebelft:cas[@ClassName='SiebApplet' " + "and @RepositoryName='Opportunity Form Applet - Child']" + "/siebelft:cas[@ClassName='SiebCurrency' " + "and @RepositoryName='Revenue']"; String SiebCalculator="/siebelft:cas[@ClassName='SiebApplication' " + "and @RepositoryName='Siebel Universal Agent']" + "/siebelft:cas[@ClassName='SiebScreen' " + "and @RepositoryName='Opportunities Screen']" + "/siebelft:cas[@ClassName='SiebView' " + "and @RepositoryName='Opportunity List View']" + "/siebelft:cas[@ClassName='SiebApplet' " + "and @RepositoryName='Opportunity Form Applet - Child']" + "/siebelft:cas[@ClassName='SiebCurrency' " + "and @RepositoryName='Revenue']" + "/siebelft:cas[@ClassName='SiebCalculator' " + "and @RepositoryName='Amount']"; siebelFT.currency(SiebCurrency).openPopup(); siebelFT.calculator(10, SiebCalculator).openPopup(); siebelFT.calculator(12, SiebCalculator).clickKey("9"); siebelFT.calculator(14, SiebCalculator).clickKeys("99"); siebelFT.calculator(16, SiebCalculator).processKey("EnterKey"); siebelFT.calculator(18, SiebCalculator).processKey("EnterKey"); try{ String result=siebelFT.calculator(20, SiebCalculator).getText(); if (!result.equals("$999.00")) { warn("getText returned " + result); } }catch(Exception exp) {} try{ Boolean result=siebelFT.calculator(22, SiebCalculator).isEnabled(); if (!result) { warn("isEnabled returned " + result); } }catch(Exception exp) {} try{ Boolean result=siebelFT.calculator(24, SiebCalculator).isOpen(); if (result) { warn("isOpen returned " + result); } }catch(Exception exp) {} siebelFT.currency(SiebCurrency).closePopup();
Creates a Siebel Calendar element.
The siebelFT.calendar method has the following command format(s):
siebelFT.calendar(path);
siebelFT.calendar(recid, path);
a String specifying the path of the element.
the ID of a previously recorded navigation, used for comparison purposes. May be null
.
Performs an action on a Siebel Calendar element.
String SiebCalendar="/siebelft:cas[@ClassName='SiebApplication' " + "and @RepositoryName='Siebel Universal Agent']" + "/siebelft:cas[@ClassName='SiebScreen' " + "and @RepositoryName='Opportunities Screen']" + "/siebelft:cas[@ClassName='SiebView' " + "and @RepositoryName='Opportunity List View']" + "/siebelft:cas[@ClassName='SiebApplet' " + "and @RepositoryName='Opportunity Form Applet - Child']" + "/siebelft:cas[@ClassName='SiebCalendar' " + "and @RepositoryName='CloseDate']"; siebelFT.calendar(SiebCalendar).openPopup(); try{ String result=siebelFT.calendar(SiebCalendar) .getCalendarType(); if (!result.equals("Date")) { warn("getCalendarType returned " + result); } }catch(Exception exp) {} try{ String result=siebelFT.calendar(10, SiebCalendar) .getDay(); if (!result.equals("27")) { info("getDay returned " + result); } }catch(Exception exp) {} try{ String result=siebelFT.calendar(12, SiebCalendar) .getMonth(); if (!result.equals("8")) { info("getMonth returned " + result); } }catch(Exception exp) {} try{ String result=siebelFT.calendar(14, SiebCalendar) .getYear(); if (!result.equals("2010")) { info("getYear returned " + result); } }catch(Exception exp) {} try{ String result="none"+siebelFT.calendar(16, SiebCalendar) .getTime(); if (!result.equals("none")) { warn("getTime returned " + result); } }catch(Exception exp) {}
Construct a test data of a table cell.
The siebelFT.cell method has the following command format(s):
siebelFT.cell(row, column, expectedValue, operator);
the row value starting from 1.
the column value starting from 1.
a String specifying the expected value.
a TestOperator that defines the type and the match approach of the data.
Specifies individual Siebel cell elements.
String SiebThreadbar1="/siebelft:cas[@ClassName='SiebApplication' " + "and @RepositoryName='Siebel Universal Agent']" + "/siebelft:cas[@ClassName='SiebScreen' " + "and @RepositoryName='Activities Screen']" + "/siebelft:cas[@ClassName='SiebThreadbar' " + "and @RepositoryName='SiebThreadbar']"; siebelFT.threadbar(SiebThreadbar).assertCells("assert", siebelFT.cells( siebelFT.cell(1, 1,"Opportunity Detail - Activities View0", TestOperator.StringExact))); siebelFT.threadbar(SiebThreadbar).verifyCells("verify", siebelFT.cells( siebelFT.cell(1, 1,"Opportunity Detail - Activities View0", TestOperator.StringExact))); try{ String result=siebelFT.threadbar(SiebThreadbar) .getActiveThreadItem(); if (!result.equals("Opportunity Detail - Activities View0")) { warn("getActiveThreadItem returned " + result); } }catch(Exception exp) {}
Utility function to return a list of cell tests.
Specifies set of Siebel cell elements.
String SiebThreadbar1="/siebelft:cas[@ClassName='SiebApplication' " + "and @RepositoryName='Siebel Universal Agent']" + "/siebelft:cas[@ClassName='SiebScreen' " + "and @RepositoryName='Activities Screen']" + "/siebelft:cas[@ClassName='SiebThreadbar' " + "and @RepositoryName='SiebThreadbar']"; siebelFT.threadbar(SiebThreadbar).assertCells("assert", siebelFT.cells( siebelFT.cell(1, 1,"Opportunity Detail - Activities View0", TestOperator.StringExact))); siebelFT.threadbar(SiebThreadbar).verifyCells("verify", siebelFT.cells( siebelFT.cell(1, 1,"Opportunity Detail - Activities View0", TestOperator.StringExact))); try{ String result=siebelFT.threadbar(SiebThreadbar) .getActiveThreadItem(); if (!result.equals("Opportunity Detail - Activities View0")) { warn("getActiveThreadItem returned " + result); } }catch(Exception exp) {}
Creates a Siebel Currency element.
The siebelFT.currency method has the following command format(s):
siebelFT.currency(path);
siebelFT.currency(recid, path);
a String specifying the path of the element.
the ID of a previously recorded navigation, used for comparison purposes. May be null
.
Performs an action on a Siebel Currency element.
String SiebCurrency="/siebelft:cas[@ClassName='SiebApplication' " + "and @RepositoryName='Siebel Universal Agent']" + "/siebelft:cas[@ClassName='SiebScreen' " + "and @RepositoryName='Opportunities Screen']" + "/siebelft:cas[@ClassName='SiebView' " + "and @RepositoryName='Opportunity List View']" + "/siebelft:cas[@ClassName='SiebApplet' " + "and @RepositoryName='Opportunity Form Applet - Child']" + "/siebelft:cas[@ClassName='SiebCurrency' " + "and @RepositoryName='Revenue']"; try{ String result=siebelFT.currency(5, SiebCurrency) .getAmount(); if (!result.equals("$.00")) { info("getAmount returned " + result); } }catch(Exception exp) {} try{ String result=siebelFT.currency(7, SiebCurrency) .getText(); if (!result.equals("$0.00")) { info("getText() returned " + result); } }catch(Exception exp) {} try{ Boolean result=siebelFT.currency(9, SiebCurrency).isEnabled(); if (!result) { warn("isEnabled returned " + result); } }catch(Exception exp) {} try{ Boolean result=siebelFT.currency(11, SiebCurrency).isOpen(); if (result) { warn("isOpen returned " + result); } }catch(Exception exp) {} siebelFT.currency(14, SiebCurrency).setText("999"); siebelFT.currency(16, SiebCurrency).processKey("EnterKey"); siebelFT.currency(18, SiebCurrency).openPopup(); siebelFT.currency(20, SiebCurrency).cancelPopup();
Creates a generic Siebel element.
The siebelFT.element method has the following command format(s):
siebelFT.element(path);
siebelFT.element(recid, path);
a String specifying the path of the element.
the ID of a previously recorded navigation, used for comparison purposes. May be null
.
Performs an action on a generic Siebel element.
web.window(1376,"/web:window[@index='0' " + "or @title='about:blank']") .navigate("http://example.com/callcenter_enu/start.swe?SWECmd=AutoOn"); web.textBox(1378,"/web:window[@index='0' " + "or @title='Siebel Call Center']" + "/web:document[@index='0']" + "/web:form[@name='SWEEntryForm' or @index='0']" + "/web:input_text[@rn='_SweUserName' " + "and @ot='SiebWebText' and @un='_SweUserName']") .setText("sadmin"); { think(0.156); } web.textBox(1379,"/web:window[@index='0' " + "or @title='Siebel Call Center']" + "/web:document[@index='0']" + "/web:form[@name='SWEEntryForm' or @index='0']" + "/web:input_text[@rn='_SweUserName' " + "and @ot='SiebWebText' and @un='_SweUserName']") .pressTab(); { think(0.031); } web.textBox(1380,"/web:window[@index='0' " + "or @title='Siebel Call Center']" + "/web:document[@index='0']" + "/web:form[@name='SWEEntryForm' or @index='0']" + "/web:input_password[@rn='_SwePassword' " + "and @ot='SiebWebPassword' and @un='_SwePassword']") .setPassword(decrypt("OvCQi9wcp7lT2jehewJtOQ==")); { think(1.232); } web.image(1381,"/web:window[@index='0' " + "or @title='Siebel Call Center']" + "/web:document[@index='0']" + "/web:img[@alt='Login' or @index='3' " + "or @src='http://example.com/callcenter_enu/images/login77_d.gif']") .click(); String path="/siebelft:cas[@ClassName='SiebApplication' " + "and @RepositoryName='Siebel Universal Agent']" + "/siebelft:cas[@ClassName='SiebMenu' " + "and @RepositoryName='SiebMenu']"; siebelFT.menu(path).assertAttributes("attributes",siebelFT.attributes( siebelFT.attribute("ClassName","SiebMenu", TestOperator.StringExact), siebelFT.attribute("RepositoryName", "SiebMenu", TestOperator.StringExact), siebelFT.attribute("UIName", "Menu", TestOperator.StringExact), siebelFT.attribute("Count", "60", TestOperator.StringExact))); siebelFT.menu(path).assertAttribute("attribute", "UIName", "Menu", TestOperator.StringExact); try{ boolean result=siebelFT.element(10, path).exists(); if (!result) { warn("exists returned " + result); } }catch(Exception exp) {} try{ String result=siebelFT.element(12, path).getAttribute("RepositoryName"); if (!result.equals("SiebMenu")) { warn("getClassName returned " + result); } }catch(Exception exp) {} try{ String result=siebelFT.element(14, path).getRepositoryName(); if (!result.equals("SiebMenu")) { warn("getRepositoryName returned " + result); } }catch(Exception exp) {} try{ siebelFT.element(16, path).storeAttribute("var", "Count"); if (!eval("{{var}}").equals("60")) { warn("Count returned " + eval("{{var}}")); } }catch(Exception exp) {} siebelFT.element(18, path).waitForAttribute("Count", "60", 10);
Checks for the existence of a Siebel control.
represents an exception that may be thrown during the execution of a script where the exception should be reported to an end user through the controller.
Checks if the specified Siebel element exists.
try{
if(siebelFT.exists("/siebelft:cas[@ClassName='SiebApplication' " +
"and @RepositoryName='Siebel Universal Agent']" +
"/siebelft:cas[@ClassName='SiebScreen' " +
"and @RepositoryName='Activities Screen']" +
"/siebelft:cas[@ClassName='SiebThreadbar' " +
"and @RepositoryName='SiebThreadbar']")) {
info("element exists");
}
}catch(Exception exp) {}
Creates a Siebel List element.
The siebelFT.list method has the following command format(s):
siebelFT.list(path);
siebelFT.list(recid, path);
a String specifying the path of the element.
the ID of a previously recorded navigation, used for comparison purposes. May be null
.
Performs an action on a Siebel List element.
String pdq="/siebelft:cas[@ClassName='SiebApplication' " + "and @RepositoryName='Siebel Universal Agent']" + "/siebelft:cas[@ClassName='SiebScreen' " + "and @RepositoryName='Opportunities Screen']" + "/siebelft:cas[@ClassName='SiebPDQ' " + "and @RepositoryName='SiebPDQ']"; siebelFT.pdq(pdq).select("** All Opportunities"); think(11.13); siebelFT.list(72,"/siebelft:cas[@ClassName='SiebApplication' " + "and @RepositoryName='Siebel Universal Agent']" + "/siebelft:cas[@ClassName='SiebScreen' " + "and @RepositoryName='Opportunities Screen']" + "/siebelft:cas[@ClassName='SiebView' " + "and @RepositoryName='Opportunity List View']" + "/siebelft:cas[@ClassName='SiebApplet' " + "and @RepositoryName='Opportunity List Applet']" + "/siebelft:cas[@ClassName='SiebList' " + "and @RepositoryName='SiebList']") .activateRow(1); { think(0.031); } siebelFT.list(73,"/siebelft:cas[@ClassName='SiebApplication' " + "and @RepositoryName='Siebel Universal Agent']" + "/siebelft:cas[@ClassName='SiebScreen' " + "and @RepositoryName='Opportunities Screen']" + "/siebelft:cas[@ClassName='SiebView' " + "and @RepositoryName='Opportunity List View']" + "/siebelft:cas[@ClassName='SiebApplet' " + "and @RepositoryName='Opportunity List Applet']" + "/siebelft:cas[@ClassName='SiebList' " + "and @RepositoryName='SiebList']") .drillDownColumn("Name", 1);
Creates a Siebel PageTabs element.
The siebelFT.pageTabs method has the following command format(s):
siebelFT.pageTabs(path);
siebelFT.pageTabs(recid, path);
a String specifying the path of the element.
the ID of a previously recorded navigation, used for comparison purposes. May be null
.
Creates a Siebel PDQ element.
The siebelFT.pdq method has the following command format(s):
siebelFT.pdq(path);
siebelFT.pdq(recid, path);
a String specifying the path of the element.
the ID of a previously recorded navigation, used for comparison purposes. May be null
.
Performs an action on a Siebel PDQ element.
String pdq="/siebelft:cas[@ClassName='SiebApplication' " +
"and @RepositoryName='Siebel Universal Agent']" +
"/siebelft:cas[@ClassName='SiebScreen' " +
"and @RepositoryName='Opportunities Screen']" +
"/siebelft:cas[@ClassName='SiebPDQ' " +
"and @RepositoryName='SiebPDQ']";
siebelFT.pdq(10, pdq).select("** All Opportunities");
think(11.13);
siebelFT.list(72,"/siebelft:cas[@ClassName='SiebApplication' " +
"and @RepositoryName='Siebel Universal Agent']" +
"/siebelft:cas[@ClassName='SiebScreen' " +
"and @RepositoryName='Opportunities Screen']" +
"/siebelft:cas[@ClassName='SiebView' " +
"and @RepositoryName='Opportunity List View']" +
"/siebelft:cas[@ClassName='SiebApplet' " +
"and @RepositoryName='Opportunity List Applet']" +
"/siebelft:cas[@ClassName='SiebList' " +
"and @RepositoryName='SiebList']")
.activateRow(1);
{
think(0.031);
}
siebelFT.list(73,"/siebelft:cas[@ClassName='SiebApplication' " +
"and @RepositoryName='Siebel Universal Agent']" +
"/siebelft:cas[@ClassName='SiebScreen' " +
"and @RepositoryName='Opportunities Screen']" +
"/siebelft:cas[@ClassName='SiebView' " +
"and @RepositoryName='Opportunity List View']" +
"/siebelft:cas[@ClassName='SiebApplet' " +
"and @RepositoryName='Opportunity List Applet']" +
"/siebelft:cas[@ClassName='SiebList' " +
"and @RepositoryName='SiebList']")
.drillDownColumn("Name", 1);
Creates a Siebel RichText element.
The siebelFT.richText method has the following command format(s):
siebelFT.richText(path);
siebelFT.richText(recid, path);
a String specifying the path of the element.
the ID of a previously recorded navigation, used for comparison purposes. May be null
.
Performs an action on a Siebel RichText element.
String SiebRichText="/siebelft:cas[@ClassName='SiebApplication' " + "and @RepositoryName='Siebel Universal Agent']" + "/siebelft:cas[@ClassName='SiebScreen' " + "and @RepositoryName='Projects Screen (ePS)']" + "/siebelft:cas[@ClassName='SiebView' " + "and @RepositoryName='Project Private Note View']" + "/siebelft:cas[@ClassName='SiebApplet' " + "and @RepositoryName='Project Private Note Form Applet']" + "/siebelft:cas[@ClassName='SiebRichText' " + "and @RepositoryName='Note']"; siebelFT.button(249,"/siebelft:cas[@ClassName='SiebApplication' " + "and @RepositoryName='Siebel Universal Agent']" + "/siebelft:cas[@ClassName='SiebScreen' " + "and @RepositoryName='Projects Screen (ePS)']" + "/siebelft:cas[@ClassName='SiebView' " + "and @RepositoryName='Project Private Note View']" + "/siebelft:cas[@ClassName='SiebApplet' " + "and @RepositoryName='Project Private Note Form Applet']" + "/siebelft:cas[@ClassName='SiebButton' " + "and @RepositoryName='NewRecord']") .click(); { think(6.812); } siebelFT.richText(5, SiebRichText).setText("zopa"); try{ String result=siebelFT.richText(7, SiebRichText).getText(); if (!result.equals("zopa")) { warn("getText returned " + result); } }catch(Exception exp) {} try{ Boolean result=siebelFT.richText(9, SiebRichText).isEnabled(); if (!result) { warn("isEnabled returned " + result); } }catch(Exception exp) {} try{ Boolean result=siebelFT.richText(11, SiebRichText).isRequired(); if (result) { warn("isRequired returned " + result); } }catch(Exception exp) {}
Creates a Siebel Screen element.
The siebelFT.screen method has the following command format(s):
siebelFT.screen(path);
siebelFT.screen(recid, path);
a String specifying the path of the element.
the ID of a previously recorded navigation, used for comparison purposes. May be null
.
Performs an action on a Siebel Screen element.
String SiebScreen="/siebelft:cas[@ClassName='SiebApplication' " + "and @RepositoryName='Siebel Universal Agent']" + "/siebelft:cas[@ClassName='SiebScreen' " + "and @RepositoryName='Accounts Screen']"; try{ String result=siebelFT.screen(3, SiebScreen) .childPathFromRepositoryName("SiebPDQ", "SiebPDQ"); String expected="/siebelft:cas[@ClassName='SiebApplication' " + "and @RepositoryName='Siebel Universal Agent']" + "/siebelft:cas[@ClassName='SiebScreen' " + "and @RepositoryName='Accounts Screen']" + "/siebelft:cas[@ClassName='SiebPDQ' " + "and @RepositoryName='SiebPDQ']"; if (!result.equals(expected)) { warn("childPathFromRepositoryName returned " + result); } }catch(Exception exp) {} try{ Integer result=siebelFT.screen(5, SiebScreen) .getClassCount("SiebPDQ"); if (result<1) { warn("getClassCountreturned " + result); } }catch(Exception exp) {} try{ String result=siebelFT.screen(7, SiebScreen) .getRepositoryNameByIndex("SiebPDQ", 0); if (!result.equals("SiebPDQ")) { warn("getRepositoryNameByIndex returned " + result); } }catch(Exception exp) {} *
Creates a Siebel ScreenViews element.
The siebelFT.screenViews method has the following command format(s):
siebelFT.screenViews(path);
siebelFT.screenViews(recid, path);
a String specifying the path of the element.
the ID of a previously recorded navigation, used for comparison purposes. May be null
.
Performs an action on a Siebel ScreenViews element.
String SiebScreenView="/siebelft:cas[@ClassName='SiebApplication' " + "and @RepositoryName='Siebel Universal Agent']" + "/siebelft:cas[@ClassName='SiebScreen' " + "and @RepositoryName='Activities Screen']" + "/siebelft:cas[@ClassName='SiebScreenViews' " + "and @RepositoryName='SiebScreenViews']"; siebelFT.screenViews(5, SiebScreenView).assertCells("screenView assert", siebelFT.cells(siebelFT.cell(2, 1, "Attachments", TestOperator.StringExact))); siebelFT.screenViews(6, SiebScreenView).verifyCells("screenView verify", siebelFT.cells(siebelFT.cell(2, 1, "Attachments", TestOperator.StringExact))); try{ String result=siebelFT.screenViews(7, SiebScreenView) .getActiveView(); if (!result.equals("Activity Attachment View")) { warn("getActiveView returned " + result); } }catch(Exception exp) {} try{ String result=siebelFT.screenViews(8, SiebScreenView) .getCell(1, 1); if (!result.equals("More Info")) { warn("getCell returned " + result); } }catch(Exception exp) {} try{ Integer result=siebelFT.screenViews(9, SiebScreenView) .getL2Count(); if (result <0) { warn("getL2Count returned " + result); } }catch(Exception exp) {} try{ Integer result=siebelFT.screenViews(10, SiebScreenView) .getL3Count(); if (result <1) { warn("getL3Count returned " + result); } }catch(Exception exp) {} try{ Integer result=siebelFT.screenViews(11, SiebScreenView) ;.getL4Count(); if (result <0) { warn("getL4Count returned " + result); } }catch(Exception exp) {} try{ String result=siebelFT.screenViews(12, SiebScreenView) .getUIName("Activity Detail View", "L3"); if (!result.equals("More Info")) { warn("getUIName returned " + result); } }catch(Exception exp) {}
Creates a Siebel Text element.
The siebelFT.text method has the following command format(s):
siebelFT.text(path);
siebelFT.text(recid, path);
a String specifying the path of the element.
the ID of a previously recorded navigation, used for comparison purposes. May be null
.
Performs an action on a Siebel Text element.
String SiebText="/siebelft:cas[@ClassName='SiebApplication' " + "and @RepositoryName='Siebel Universal Agent']" + "/siebelft:cas[@ClassName='SiebScreen' " + "and @RepositoryName='Accounts Screen']" + "/siebelft:cas[@ClassName='SiebView' " + "and @RepositoryName='Account List View']" + "/siebelft:cas[@ClassName='SiebApplet' " + "and @RepositoryName='Account Entry Applet']" + "/siebelft:cas[@ClassName='SiebText' " + "and @RepositoryName='Location']"; siebelFT.text(SiebText).setText("zopa"); siebelFT.text(SiebText).getPopupType(); try{ String result=siebelFT.text(5, SiebText).getText(); if (!result.equals("zopa")) { warn("getText returned " + result); } }catch(Exception exp) {} try{ Boolean result=siebelFT.text(6, SiebText).isEnabled(); if (!result) { warn("isEnabled returned " + result); } }catch(Exception exp) {} try{ Boolean result=siebelFT.text(7, SiebText).isEncrypted(); if (result) { warn("isEncrypted() returned " + result); } }catch(Exception exp) {} siebelFT.text(8, SiebText).openPopup(); siebelFT.text(9, SiebText).setPassword("abc"); siebelFT.text(10, SiebText).processKey("EnterKey");
Creates a Siebel TextArea element.
The siebelFT.textArea method has the following command format(s):
siebelFT.textArea(path);
siebelFT.textArea(recid, path);
a String specifying the path of the element.
the ID of a previously recorded navigation, used for comparison purposes. May be null
.
Performs an action on a Siebel TextArea element.
String SiebTextArea="/siebelft:cas[@ClassName='SiebApplication' " + "and @RepositoryName='Siebel Universal Agent']" + "/siebelft:cas[@ClassName='SiebScreen' " + "and @RepositoryName='Opportunities Screen']" + "/siebelft:cas[@ClassName='SiebView' " + "and @RepositoryName='Opportunity List View']" + "/siebelft:cas[@ClassName='SiebApplet' " + "and @RepositoryName='Opportunity Form Applet - Child']" + "/siebelft:cas[@ClassName='SiebTextArea' " + "and @RepositoryName='Description']"; siebelFT.textArea(5, SiebTextArea).setText("zopa"); try{ String result=siebelFT.textArea(6, SiebTextArea) .getText(); if (!result.equals("zopa")) { warn("getText returned " + result); } }catch(Exception exp) {} try{ Boolean result=siebelFT.textArea(7, SiebTextArea) .isEnabled(); if (!result) { warn("isEnabled returned " + result); } }catch(Exception exp) {}
Creates a Siebel Threadbar element.
The siebelFT.threadbar method has the following command format(s):
siebelFT.threadbar(path);
siebelFT.threadbar(recid, path);
a String specifying the path of the element.
the ID of a previously recorded navigation, used for comparison purposes. May be null
.
Performs an action on a Siebel Threadbar element.
String SiebThreadbar="/siebelft:cas[@ClassName='SiebApplication' " + "and @RepositoryName='Siebel Universal Agent']" + "/siebelft:cas[@ClassName='SiebScreen' " + "and @RepositoryName='Activities Screen']" + "/siebelft:cas[@ClassName='SiebThreadbar' " + "and @RepositoryName='SiebThreadbar']"; siebelFT.threadbar(2, SiebThreadbar).assertCells("assert", siebelFT.cells(siebelFT.cell(1, 1,"Opportunity Detail - Activities View0", TestOperator.StringExact))); siebelFT.threadbar(4, SiebThreadbar).verifyCells("verify", siebelFT.cells(siebelFT.cell(1, 1,"Opportunity Detail - Activities View0", TestOperator.StringExact))); try{ String result=siebelFT.threadbar(5, SiebThreadbar) .getActiveThreadItem(); if (!result.equals("Opportunity Detail - Activities View0")) { warn("getActiveThreadItem returned " + result); } }catch(Exception exp) {} try{ String result=siebelFT.threadbar(6, SiebThreadbar) .getCell(1, 1); if (!result.equals("Opportunity Detail - Activities View0")) { warn("getCell returned " + result); } }catch(Exception exp) {} try{ Integer result=siebelFT.threadbar(7, SiebThreadbar) .getCount(); if (result <1) { warn("getCount returned " + result); } }catch(Exception exp) {} try{ String result=siebelFT.threadbar(8, SiebThreadbar) .getThreadItemByIndex(0); if (!result.equals("Opportunity Detail - Activities View0")) { warn("getThreadItemByIndex returned " + result); } }catch(Exception exp) {} try{ String result=siebelFT.threadbar(9, SiebThreadbar) .getThreadItems(); if (!result.equals("Opportunity Detail - Activities View0")) { warn("getThreadItems returned " + result); } }catch(Exception exp) {} try{ Boolean result=siebelFT.threadbar(10, SiebThreadbar) .isExists("Opportunity Detail - Activities View0"); if (!result) { warn("isExists returned " + result); } }catch(Exception exp) {} siebelFT.threadbar(11, SiebThreadbar).storeCell("var", 1, 1); if (!eval("{{var}}").equals("Opportunity Detail - Activities View0")){ warn("storeCell returned " + eval("{{var}}")); }
Creates a Siebel Toolbar element.
The siebelFT.toolbar method has the following command format(s):
siebelFT.toolbar(path);
siebelFT.toolbar(recid, path);
a String specifying the path of the element.
the ID of a previously recorded navigation, used for comparison purposes. May be null
.
Creates a Siebel Tree element.
The siebelFT.tree method has the following command format(s):
siebelFT.tree(path);
siebelFT.tree(recid, path);
a String specifying the path of the element.
the ID of a previously recorded navigation, used for comparison purposes. May be null
.
Performs an action on a Siebel Tree element.
String SiebTree="/siebelft:cas[@ClassName='SiebApplication' " + "and @RepositoryName='Siebel Universal Agent']" + "/siebelft:cas[@ClassName='SiebScreen' " + "and @RepositoryName='Opportunities Screen']" + "/siebelft:cas[@ClassName='SiebView' " + "and @RepositoryName='Opportunity Explorer View']" + "/siebelft:cas[@ClassName='SiebApplet' " + "and @RepositoryName='Opportunity Tree Applet']" + "/siebelft:cas[@ClassName='SiebTree' " + "and @RepositoryName='SiebTree']"; siebelFT.tree(4, SiebTree).expand("1"); siebelFT.tree(5, SiebTree).select("1.2"); try{ String result=siebelFT.tree(6, SiebTree) .getActiveTreeItem(); if ((result.length()<1)) { warn("getActiveTreeItem returned " + result); } }catch(Exception exp) {} try{ String result=siebelFT.tree(7, SiebTree) .getTreeItemName("1.2"); if (result.length()<1) { warn("getTreeItemName returned " + result); } }catch(Exception exp) {} try{ Integer result=siebelFT.tree(8, SiebTree) .getChildCount("1"); if (result <1) { warn("getChildCount returned " + result); } }catch(Exception exp) {} try{ Boolean result=siebelFT.tree(9, SiebTree) .isExpanded("1"); if (!result) { warn("isExpanded returned " + result); } }catch(Exception exp) {} siebelFT.tree(10, SiebTree).nextPage(); siebelFT.tree(11, SiebTree).previousPage(); siebelFT.tree(12, SiebTree).collapse("1");