public class Core extends Object implements IOKW_State
| Modifier and Type | Field and Description |
|---|---|
protected static Exception |
NOK_Reason
\~german
Enthält die Exception, weshalb die Ausführung des Testfalls abgebrochen worden ist.
|
| Constructor and Description |
|---|
Core()
\~german
OKW-Konstuktor: Setzt den Default-Zustand auf OKW.OK
\~english
OKW constructor: Sets the default state to OKW.OK
\~
|
| Modifier and Type | Method and Description |
|---|---|
void |
BeginTest(String Testname)
\copydoc IOKW_State::BeginTest(String)
|
void |
ClickOn(String FN)
\copydoc IOKW_State::ClickOn(String)
|
void |
CopyFile(String fpsSourcePathAndFileName,
String fpsDestinationPathAndFileName)
\copydoc IOKW_State::CopyFile(String,String)
|
void |
DirectoryCreate(String PATH)
\copydoc IOKW_State::DirectoryCreate(String)
|
void |
DirectoryDelete(String PATH)
\copydoc IOKW_State::DirectoryDelete(String)
|
void |
DoubleClickOn(String FN)
\copydoc IOKW_State::DoubleClickOn(String)
|
void |
EndTest()
\copydoc IOKW_State::EndTest()
|
void |
FileCreate(String PATH)
\copydoc IOKW_State::FileCreate(String)
|
void |
FileDelete(String fpsPathAndFileName)
\copydoc IOKW_State::FileDelete(String)
|
void |
FilesDelete(String fpsDirPath,
String fpsFileMatch)
\copydoc IOKW_State::FilesDelete(String, String)
|
Exception |
getNOK_Reason() |
Boolean |
getVerifyFail() |
static void |
Init() |
void |
LogCaption(String FN)
\copydoc IOKW_State::LogCaption(String)
|
void |
LogExists(String FN)
\copydoc IOKW_State::LogExists(String)
|
void |
LogHasFocus(String FN)
\copydoc IOKW_State::LogHasFocus(String)
|
void |
LogIsActive(String FN)
\copydoc IOKW_State::LogIsActive(String)
|
void |
LogLabel(String FN)
\copydoc IOKW_State::LogLabel(String)
|
void |
LogPlaceholder(String FN)
\copydoc IOKW_State::LogPlaceholder(String)
|
void |
LogSelected(String FN)
\copydoc IOKW_State::LogSelected(String)
|
void |
LogTablecellValue(String FN,
String COL,
String ROW)
\copydoc IOKW_State::LogTablecellValue(String,String,String)
|
void |
LogTooltip(String FN)
\copydoc IOKW_State::LogTooltip(String)
|
void |
LogValue(String FN)
\copydoc IOKW_State::LogValue(String)
|
void |
MemorizeCaption(String FN,
String Val)
\copydoc IOKW_State::MemorizeCaption(String,String)
|
void |
MemorizeExists(String FN,
String Val)
\copydoc IOKW_State::MemorizeExists(String,String)
|
void |
MemorizeHasFocus(String FN,
String Val)
\copydoc IOKW_State::MemorizeHasFocus(String,String)
|
void |
MemorizeIsActive(String FN,
String Val)
\copydoc IOKW_State::MemorizeIsActive(String,String)
|
void |
MemorizeLabel(String FN,
String Val)
\copydoc IOKW_State::MemorizeLabel(String,String)
|
void |
MemorizePlaceholder(String FN,
String Val)
\copydoc IOKW_State::MemorizePlaceholder(String,String)
|
void |
MemorizeSelectedValue(String FN,
String Val)
\copydoc IOKW_State::MemorizeSelectedValue(String,String)
|
void |
MemorizeTablecellValue(String FN,
String COL,
String ROW,
String fpsKeyName)
\copydoc IOKW_State::MemorizeTablecellValue(String,String,String,String)
|
void |
MemorizeTooltip(String FN,
String Val)
\copydoc IOKW_State::MemorizeTooltip(String,String)
|
void |
MemorizeValue(String FN,
String Val)
\copydoc IOKW_State::MemorizeValue(String,String)
|
void |
Select(String FN,
String Val)
\copydoc IOKW_State::Select(String,String)
|
void |
SelectChild(String FN)
\copydoc IOKW_State::SelectChild(String)
|
void |
SelectContext(String FN)
\copydoc IOKW_State::SelectContext(String)
|
void |
SelectMenu(String FN)
\copydoc IOKW_State::SelectMenu(String)
|
void |
SelectMenu(String FN,
String Val)
\copydoc IOKW_State::SelectMenu(String,String)
|
void |
SelectTablecell(String FN,
String COL,
String ROW)
\copydoc IOKW_State::SelectTablecell(String,String,String)
|
void |
SelectWindow(String FN)
\copydoc IOKW_State::SelectWindow(String)
|
void |
Sequence(String FN,
String fpsSequenName,
String SEQID)
\copydoc IOKW_State::Sequence(String,String,String)
|
void |
SetCoreStateNOK() |
void |
SetCoreStateOK() |
void |
SetFocus(String FN)
\copydoc IOKW_State::SetFocus(String)
|
void |
setLanguage(String Language)
\~german
Setzt die Sprache auf den gegebenen wert Language.
|
void |
setNOK_Reason(Exception nOK_Reason) |
void |
SetValue(String FN,
String Val)
\copydoc IOKW_State::SetValue(String,String)
|
void |
SetVar(String VN,
String Val)
\copydoc IOKW_State::SetVar(String,String)
|
void |
setVerifyFail(Boolean verifyFail) |
void |
StartApp(String fpsApplicationName)
\copydoc IOKW_State::StartApp(String)
|
void |
StopApp(String fpsApplicationName)
\copydoc IOKW_State::StopApp(String)
|
void |
TypeKey(String FN,
String Val)
\copydoc IOKW_State::TypeKey(String,String)
|
void |
TypeKeyTablecell(String FN,
String COL,
String ROW,
String Val)
\copydoc IOKW_State::TypeKeyTablecell(String,String,String,String)
|
void |
TypeKeyWindow(String FN,
String Val)
\copydoc IOKW_State::TypeKeyWindow(String,String)
|
void |
VerifyBadge(String BN,
String ExpVal)
\copydoc IOKW_State::VerifyBadge(String,String)
|
void |
VerifyBadgeREGX(String BN,
String ExpVal)
\copydoc IOKW_State::VerifyBadge(String,String)
|
void |
VerifyBadgeWCM(String BN,
String ExpVal)
\copydoc IOKW_State::VerifyBadge(String,String)
|
void |
VerifyCaption(String FN,
String ExpVal)
\copydoc IOKW_State::VerifyCaption(String,String)
|
void |
VerifyCaptionREGX(String FN,
String ExpVal)
\copydoc IOKW_State::VerifyCaptionREGX(String,String)
|
void |
VerifyCaptionWCM(String FN,
String ExpVal)
\copydoc IOKW_State::VerifyCaptionWCM(String,String)
|
void |
VerifyDirectoryExists(String fpsPathAndFileName,
String ExpVal)
\copydoc IOKW_State::VerifyDirectoryExists(String,String)
|
void |
VerifyErrorMSG_REGX(String FN,
String ExpVal)
\copydoc IOKW_State::VerifyErrorMSG_REGX(String,String)
|
void |
VerifyErrorMSG_WCM(String FN,
String ExpVal)
\copydoc IOKW_State::VerifyErrorMSG_WCM(String,String)
|
void |
VerifyErrorMSG(String FN,
String ExpVal)
\copydoc IOKW_State::VerifyErrorMSG(String,String)
|
void |
VerifyExists(String FN,
String ExpVal)
\copydoc IOKW_State::VerifyExists(String,String)
|
void |
VerifyFileExists(String fpsPathAndFileName,
String ExpVal)
\copydoc IOKW_State::VerifyFileExists(String,String)
|
void |
VerifyHasFocus(String FN,
String ExpVal)
\copydoc IOKW_State::VerifyHasFocus(String,String)
|
void |
VerifyIsActive(String FN,
String ExpVal)
\copydoc IOKW_State::VerifyIsActive(String,String)
|
void |
VerifyIsFile(String fpsPathAndFileName,
String ExpVal)
\copydoc IOKW_State::VerifyIsFile(String,String)
|
void |
VerifyLabel(String FN,
String ExpVal)
\copydoc IOKW_State::VerifyLabel(String,String)
|
void |
VerifyLabelREGX(String FN,
String ExpVal)
\copydoc IOKW_State::VerifyLabelREGX(String,String)
|
void |
VerifyLabelWCM(String FN,
String ExpVal)
\copydoc IOKW_State::VerifyLabelWCM(String,String)
|
void |
VerifyMaxLength(String FN,
String ExpVal)
\copydoc IOKW_State::VerifyMaxLength(String,String)
|
void |
VerifyMinLength(String FN,
String ExpVal)
\copydoc IOKW_State::VerifyMinLength(String,String)
|
void |
VerifyPlaceholder(String FN,
String ExpVal)
\copydoc IOKW_State::VerifyPlaceholder(String,String)
|
void |
VerifyPlaceholderREGX(String FN,
String ExpVal)
\copydoc IOKW_State::VerifyPlaceholderREGX(String,String)
|
void |
VerifyPlaceholderWCM(String FN,
String ExpVal)
\copydoc IOKW_State::VerifyPlaceholderWCM(String,String)
|
void |
VerifySelectedValue(String FN,
String ExpVal)
\copydoc IOKW_State::VerifySelectedValue(String,String)
|
void |
VerifySelectedValueREGX(String FN,
String ExpVal)
\copydoc IOKW_State::VerifySelectedValue(String,String)
|
void |
VerifySelectedValueWCM(String FN,
String ExpVal)
\copydoc IOKW_State::VerifySelectedValueWCM(String,String)
|
void |
VerifyTablecellValue(String FN,
String COL,
String ROW,
String ExpVal)
\copydoc IOKW_State::VerifyTablecellValue(String,String,String,String)
|
void |
VerifyTablecellValueREGX(String FN,
String COL,
String ROW,
String ExpVal)
\copydoc IOKW_State::VerifyTablecellValueREGX(String,String,String,String)
|
void |
VerifyTablecellValueWCM(String FN,
String COL,
String ROW,
String ExpVal)
\copydoc IOKW_State::VerifyTablecellValueWCM(String,String,String,String)
|
void |
VerifyTooltip(String FN,
String ExpVal)
\copydoc IOKW_State::VerifyTooltip(String,String)
|
void |
VerifyTooltipREGX(String FN,
String ExpVal)
\copydoc IOKW_State::VerifyTooltipREGX(String,String)
|
void |
VerifyTooltipWCM(String FN,
String ExpVal)
\copydoc IOKW_State::VerifyTooltipWCM(String,String)
|
void |
VerifyValue(String FN,
String ExpVal)
\copydoc IOKW_State::VerifyValue(String,String)
|
void |
VerifyValueREGX(String FN,
String ExpVal)
\copydoc IOKW_State::VerifyValueREGX(String,String)
|
void |
VerifyValueWCM(String FN,
String ExpVal)
\copydoc IOKW_State::VerifyValueWCM(String,String)
|
protected static Exception NOK_Reason
public Core()
public Boolean getVerifyFail()
public void setVerifyFail(Boolean verifyFail)
verifyFail - the verifyFail to setpublic Exception getNOK_Reason()
public void setNOK_Reason(Exception nOK_Reason)
nOK_Reason - the nOK_Reason to setpublic void SetCoreStateNOK()
public void SetCoreStateOK()
public void setLanguage(String Language)
setLanguage in interface IOKW_StateLanguage - Sprache die ausgewählt werden soll, z.B. mit "de"
\~english
Internal method to set the language of the language depending outputs of the log documentation.
The choosable languages are defined in OKWLanguage::cvLsLanguagesImplemented
and are prooved with this list.public static void Init()
public void BeginTest(String Testname) throws Exception
BeginTest in interface IOKW_StateTestname - Name oder Bezeichnung des Testfalls
\~english
Indicates the begin of a test case.
This keyword is mandatory:
OKW test cases must begin with EN.BeginTest(String) and
end with EN.EndTest() between these keywords the test case is described.
\note EN.BeginTest(String) initializes OKW:
-# Set OKW to the state okw.core.OK
-# The name of the test case is written to ${TCN}Exceptionpublic void ClickOn(String FN) throws Exception
ClickOn in interface IOKW_StateFN - Funktionaler Name des Objekts
\~english
Clicks on given object.
_Example: Click on the object with the name "My Object":_Exceptionpublic void DoubleClickOn(String FN) throws Exception
DoubleClickOn in interface IOKW_StateFN - Funktionaler Name des Objekts
\~english
Clicks on given object.
_Example: Click on the object with the name "My Object":_Exceptionpublic void EndTest()
throws Exception
EndTest in interface IOKW_StateExceptionpublic void LogExists(String FN) throws Exception
LogExists in interface IOKW_StateFN - Funktionaler Name des Objekts
\~english
Logs whether the given object is existing.
_Example: Logs whether the object with the name "My Object" is existing:_Exceptionpublic void LogHasFocus(String FN) throws Exception
LogHasFocus in interface IOKW_StateFN - Funktionaler Name des Objekts
\~english
Logs the focus status of the given object.
_Example: Logs the focus status of "My Object":_Exceptionpublic void LogIsActive(String FN) throws Exception
LogIsActive in interface IOKW_StateFN - Funktionaler Name des Objekts
\~english
Logs the status of the given object.
_Example: Logs the active status of "My Object":_Exceptionpublic void LogSelected(String FN) throws Exception
LogSelected in interface IOKW_StateFN - Funktionaler Name des Objekts
\~english
Logs the marked text of the given object.Exceptionpublic void LogTablecellValue(String FN, String COL, String ROW) throws Exception
LogTablecellValue in interface IOKW_StateFN - Funktionaler Name des ObjektsCOL - Spaltennummer der zu wählenden Zelle, beginnend mit 1.ROW - Zeilennummer der zu wählenden Zelle, beginnend mit 1.
\~english
\brief
Logs the value of the selected tablecell.Exceptionpublic void LogTooltip(String FN) throws Exception
LogTooltip in interface IOKW_StateFN - Funktionaler Name des Objekts
\~english
Logs the Tooltip of the given object.
_Example: Logs the tooltip text of "My Object":_Exceptionpublic void LogCaption(String FN) throws Exception
LogCaption in interface IOKW_StateFN - Funktionaler Name des Objekts
\~english
No description for "LogCaption" availableExceptionpublic void LogLabel(String FN) throws Exception
LogLabel in interface IOKW_StateFN - Funktionaler Name des Objekts
\~english
Displays the value of the label in the log file.Exceptionpublic void LogPlaceholder(String FN) throws Exception
LogPlaceholder in interface IOKW_StateFN - Funktionaler Name des Objekts
\~english
Displays the value of the placeholder in the log file.Exceptionpublic void LogValue(String FN) throws Exception
LogValue in interface IOKW_StateFN - Funktionaler Name des Objekts
\~english
Logs the standard value of an object.
The standard value of the object (in most cases the visible text) is detected
and returned in the actual log-fileExceptionpublic void MemorizeExists(String FN, String Val) throws Exception
MemorizeExists in interface IOKW_StateFN - Funktionaler Name des ObjektsVal - Name des Schlüssels
\~english
\brief
Memorizes the actual existing Status of the object.
The value is stored under the key returned as parameter.Exceptionpublic void MemorizeHasFocus(String FN, String Val) throws Exception
MemorizeHasFocus in interface IOKW_StateFN - Funktionaler Name des ObjektsVal - Name des Schlüssels
\~english
No description for "MemorizeHasFocus" availableExceptionpublic void MemorizeIsActive(String FN, String Val) throws Exception
MemorizeIsActive in interface IOKW_StateFN - Funktionaler Name des ObjektsVal - Name des Schlüssels
\~english
Memorizes the state of the given object.
The value is stored under the key which is given as parameter.Exceptionpublic void MemorizeSelectedValue(String FN, String Val) throws Exception
MemorizeSelectedValue in interface IOKW_StateFN - Funktionaler Name des ObjektsVal - Name des Schlüssels
\~english
No description for "MemorizeSelectedValue" availableExceptionpublic void MemorizeTablecellValue(String FN, String COL, String ROW, String fpsKeyName) throws Exception
MemorizeTablecellValue in interface IOKW_StateFN - Funktionaler Name des ObjektsCOL - Spaltennummer der zu wählenden Zelle, beginnend mit 1.ROW - Zeilennummer der zu wählenden Zelle, beginnend mit 1.
\~english
Memorizes the value of the given tablecell.fpsKeyName - Name des SchlüsselsExceptionpublic void MemorizeTooltip(String FN, String Val) throws Exception
MemorizeTooltip in interface IOKW_StateFN - Funktionaler Name des ObjektsVal - Name des Schlüssels
\~english
Logs the tooltip-text of the given object.
_Example logs the tooltip text of the given object "my object"_Exceptionpublic void MemorizeLabel(String FN, String Val) throws Exception
MemorizeLabel in interface IOKW_StateFN - Funktionaler Name des ObjektsVal - Name des Schlüssels
\~english
Speaks the current value of the label and stores it under fpsMemKeyName.Exceptionpublic void MemorizePlaceholder(String FN, String Val) throws Exception
MemorizePlaceholder in interface IOKW_StateFN - Funktionaler Name des ObjektsVal - Name des Schlüssels
\~english
Saves the current value of the label, and saves it under fpsMemKeyName.Exceptionpublic void MemorizeCaption(String FN, String Val) throws Exception
MemorizeCaption in interface IOKW_StateFN - Funktionaler Name des ObjektsVal - Name des Schlüssels
\~english
No description for "MemorizeCaptione" availableExceptionpublic void MemorizeValue(String FN, String Val) throws Exception
MemorizeValue in interface IOKW_StateFN - Funktionaler Name des ObjektsVal - Name des Schlüssels
\~english
Memorizes the standard value of an object.
The standard value of the object -mostly this is the displayed text- is picked out
and stored under the internal given key. The value can read out with the keyword XXXXX after it.Exceptionpublic void Select(String FN, String Val) throws Exception
Select in interface IOKW_StateFN - Funktionaler Name des ObjektsVal - Sich ergebender Wert
\~english
Select all rows in a list/chart, which contain the given data.
Chart columns are merged row by row to process lists and charts identical.
The first row which contains the given data will be selected. The row is selected by a single click.
The delivery of an additional parameter "Doubleclick" leads to the use of a doubleclick.
The {HSEP}-constant can be used, if defined values in multiple columns are required.Exceptionpublic void SelectMenu(String FN) throws Exception
SelectMenu in interface IOKW_StateFN - Funktionaler Name des Objekts
\~english
Selects the given menu item.
_Example Select menu item with name "MyMenu":_ Exceptionpublic void SelectMenu(String FN, String Val) throws Exception
SelectMenu in interface IOKW_StateFN - Funktionaler Name des ObjektsVal - Sich ergebender Wert
\~english
Selects the given menu item.
_Example Select menu item with name "MyMenu":_ Exceptionpublic void SelectTablecell(String FN, String COL, String ROW) throws Exception
SelectTablecell in interface IOKW_StateFN - Funktionaler Name des ObjektsCOL - Spaltennummer der zu wählenden Zelle, beginnend mit 1.ROW - Zeilennummer der zu wählenden Zelle, beginnend mit 1.
\~english
Selects the given table cell.
The column and row positions are always entered as strings.
If such a parameter is starting with a hash (#) the String is interpreted as an index number, e.g. "#1").
If a hash sign should be interpreted as text it must signed with a backslash,
e.g. "\#1 text with leading number").
The header row is addressed with the index "0". The first data row starts with the index 1.
For tables with multiline headers the offset to the first data row can be set
The column index starts with the number 1.Exceptionpublic void SelectWindow(String FN) throws Exception
SelectWindow in interface IOKW_StateFN - Funktionaler Name des Objekts
\~english
Setting the context for the given window and ensuring that the window
is active and in the foreground.
_Example: Select window with name "MyWindow":_ Exceptionpublic void SelectChild(String FN) throws Exception
SelectChild in interface IOKW_StateFN - Funktionaler Name des KindObjektes
\~english
Sets the value of SELECTEDCHILD to the value of FN.
In the following OpeKeywords this value can be retrieved or referenced with "SELECTEDCHILD".
_Example:_ Selection of the child object with the name "MyChildObject".Exceptionpublic void SelectContext(String FN) throws Exception
SelectContext in interface IOKW_StateFN - Funktionaler Name des Parentobjektes
\~english
Sets the context to FN.
SelectContext() is to be used like SelectWindow(String).
The difference to SelectWindow(String) is that SelectContext(String)
does not trigger any interactions, such as existence check or bringing windows to the foreground.
Technically, only the frame with the given name is selected.
_Example:_
\code{java}
EN.SelectContext( "Login" )
EN.SetValue("User", "MyUser")
EN.SetValue("Password", "MyPassword")
EN.ClickOn("OK")
\endcodeExceptionpublic void Sequence(String FN, String fpsSequenName, String SEQID) throws Exception
Sequence in interface IOKW_StateFN - Funktionaler Name des Fensterobjekts, in der die Sequenz definiert ist.fpsSequenName - Name der Sequenz, die aufgerufen werden soll.SEQID - Sequenz ID des Datensatzes, die als Eingabe verwendet werden soll.
\~english
Calls the sequence of the window.
Sequences are defined per window and have a unique sequence name within the window.
Entered records are referenced with the sequence ID.
_Example: Calling the sequence _Login_ of the window _Login_ with the record _Administrator_:_ Exceptionpublic void SetFocus(String FN) throws Exception
SetFocus in interface IOKW_StateFN - Funktionaler Name des Objekts
\~english
Setting the focus to the given window object.Exceptionpublic void SetValue(String FN, String Val) throws Exception
SetValue in interface IOKW_StateFN - Funktionaler Name des ObjektsVal - Sich ergebender Wert
\~english
Setting the value of the given window object to the given value.
The input is not working with the simulation of single keyboard inputs,
but with High-Level Setter-Methods of the objects:Exceptionpublic void SetVar(String VN, String Val) throws Exception
SetVar in interface IOKW_StateVN - Name der Var, die du definieren möchtestVal - Wert, der dem Var-Namen zuzuordnen ist.
\~english
Sets the value of the given variable VN to the given value Val.
__Example:__ Set the value of the variable "myVar" to the value "myValue": Exceptionpublic void StartApp(String fpsApplicationName) throws Exception
StartApp in interface IOKW_StatefpsApplicationName - Der fachliche Name der Anwendung.
\~english
Starts the given application.
_Example: Order to start the application "InternetExplorer":_ Exceptionpublic void StopApp(String fpsApplicationName) throws Exception
StopApp in interface IOKW_StatefpsApplicationName - Derf achliche Name der Anwendung
\~english
\brief
Ends a given application.
_Example: Order to start the application "InternetExplorer":_ Exceptionpublic void TypeKey(String FN, String Val) throws Exception
TypeKey in interface IOKW_StateFN - Funktionaler Name des ObjektsVal - Sich ergebender Wert
\~english
Keyboard inputs of data in the active windows object.
The data are sent as keyboard inputs to the child object of the active window.
This enables the use of hot keys and function keys as input data.
If with help of the valueseparator (SEP) multiple values are passed in the parameter,
then all values are sent as keyboard input to the window object, separated by a line break.
__Example: "Simple Input":__Exceptionpublic void TypeKeyTablecell(String FN, String COL, String ROW, String Val) throws Exception
TypeKeyTablecell in interface IOKW_StateFN - Funktionaler Name des ObjektsCOL - Spaltennummer der zu wählenden Zelle, beginnend mit 1.
\~english
Input of date to a given tablecell by the keyboard.
The data are sent as keyboard inputs to the given tablecell.
This ensures the use of hotkeys and functional tabs as input data.
The parameters of the row and column positions are always set as strings.
If such a parameter is starting with a hash (#) the String is interpreted as an index number, e.g. "#1").
If a hash sign should be interpreted as text it must signed with a backslash,
e.g. "\#1 text with leading number").
The header row is adressed with the index "0". The first data row starts with the index 1.
For tables with multiline headers the offset to the first data row can be set
The column index starts with the number 1.ROW - Zeilennummer der zu wählenden Zelle, beginnend mit 1.Val - Sich ergebender WertExceptionpublic void TypeKeyWindow(String FN, String Val) throws Exception
TypeKeyWindow in interface IOKW_StateFN - Funktionaler Name des ObjektsVal - Einzugebender gebender Wert
\~englishExceptionpublic void VerifyBadge(String BN, String ExpVal) throws Exception
VerifyBadge in interface IOKW_StateExpVal - Erwarteter Wert
\~english
Verifies the Badge of a GUI-object.Exceptionpublic void VerifyBadgeWCM(String BN, String ExpVal) throws Exception
VerifyBadgeWCM in interface IOKW_StateExpVal - Erwarteter Wert
\~english
Verifies the Badge of a GUI-object.
with Wildcard-MatchExceptionpublic void VerifyBadgeREGX(String BN, String ExpVal) throws Exception
VerifyBadgeREGX in interface IOKW_StateExpVal - Erwarteter Wert
\~english
Verifies the Badge of a GUI-object.
with regular expressionExceptionpublic void VerifyCaption(String FN, String ExpVal) throws Exception
VerifyCaption in interface IOKW_StateFN - Funktionaler Name des ObjektsExpVal - Erwarteter Wert
\~english
No description for "VerifyCaption" availableExceptionpublic void VerifyCaptionWCM(String FN, String ExpVal) throws Exception
VerifyCaptionWCM in interface IOKW_StateFN - Funktionaler Name des ObjektsExpVal - Erwarteter Wert
\~english
No description for "VerifyCaption" availableExceptionpublic void VerifyCaptionREGX(String FN, String ExpVal) throws Exception
VerifyCaptionREGX in interface IOKW_StateFN - Funktionaler Name des ObjektsExpVal - Erwarteter Wert
\~english
Verifies the heading of an object, regular expressions are allowed as expected values.
_Example:_ Check if the value (text) of the object "MyObject" starts with the expected value "Django":
\verbatim EN.VerifyCaptionREGX( "myObject", "^Django.*" ) \endverbatimExceptionpublic void VerifyExists(String FN, String ExpVal) throws Exception
VerifyExists in interface IOKW_StateFN - Funktionaler Name des ObjektsExpVal - Erwarteter Wert
\~english
Checks the existence of the given object.
_Example #1: Check if the object MyObject exists:_ Exceptionpublic void VerifyHasFocus(String FN, String ExpVal) throws Exception
VerifyHasFocus in interface IOKW_StateFN - Funktionaler Name des ObjektsExpVal - Erwarteter Wert. Erlaubte Werte sind: "JA", "NEIN" und "IGNORIEREN".
\~english
Compares the focus status of the given object with the expected value.
_Example #1: Verify if the object MyObject has the focus:_ Exceptionpublic void VerifyIsActive(String FN, String ExpVal) throws Exception
VerifyIsActive in interface IOKW_StateFN - Funktionaler Name des ObjektsExpVal - Erwarteter Wert. Erlaubte Werte sind: "JA", "NEIN" und "IGNORIEREN".
\~english
Compares the focus status of the given object with the expected value.
_Example: Verify if the object MyObject is in the state "active":_ Exceptionpublic void VerifySelectedValue(String FN, String ExpVal) throws Exception
VerifySelectedValue in interface IOKW_StateFN - Funktionaler Name des ObjektsExpVal - Erwarteter Wert
\~english
Compares the selected value of the given listobject with the expected value.
A list can be a simple list, a table or a tree-view.
Expected Values in tree-views are indicated with the whole hierarchy (see example).
With this the hierarchical elements are divided with the separator {SEP}.Exceptionpublic void VerifySelectedValueWCM(String FN, String ExpVal) throws Exception
VerifySelectedValueWCM in interface IOKW_StateExceptionpublic void VerifySelectedValueREGX(String FN, String ExpVal) throws Exception
VerifySelectedValueREGX in interface IOKW_StateExceptionpublic void VerifyTablecellValue(String FN, String COL, String ROW, String ExpVal) throws Exception
VerifyTablecellValue in interface IOKW_StateFN - Funktionaler Name des ObjektsCOL - Spaltennummer der zu wählenden Zelle, beginnend mit 1.ROW - Zeilennummer der zu wählenden Zelle, beginnend mit 1.ExpVal - Erwarteter Wert
\~english
Compares the content of the given table cell with the expected value.Exceptionpublic void VerifyTablecellValueWCM(String FN, String COL, String ROW, String ExpVal) throws Exception
VerifyTablecellValueWCM in interface IOKW_StateFN - Funktionaler Name des ObjektsCOL - Spaltennummer der zu wählenden Zelle, beginnend mit 1.ROW - Zeilennummer der zu wählenden Zelle, beginnend mit 1.ExpVal - Erwarteter Wert
\~english
Compares the content of the given table cell with the expected value.Exceptionpublic void VerifyTablecellValueREGX(String FN, String COL, String ROW, String ExpVal) throws Exception
VerifyTablecellValueREGX in interface IOKW_StateFN - Funktionaler Name des ObjektsCOL - Spaltennummer der zu wählenden Zelle, beginnend mit 1.ROW - Zeilennummer der zu wählenden Zelle, beginnend mit 1.ExpVal - Erwarteter Wert
\~english
Compares the content of the given table cell with the expected value.Exceptionpublic void VerifyTooltip(String FN, String ExpVal) throws Exception
VerifyTooltip in interface IOKW_StateFN - Funktionaler Name des ObjektsExpVal - Erwarteter Wert
\~english
Checks the tooltip-text of an object.
The expected value is exactly, i.e. without wildcards, specified.Exceptionpublic void VerifyTooltipREGX(String FN, String ExpVal) throws Exception
VerifyTooltipREGX in interface IOKW_StateFN - Funktionaler Name des ObjektsExpVal - Erwarteter Wert, gegegebn als Regulärerausdruck.
\~english
Checks the tooltip-text of an object. The expected tooltip text is givan as Regularexpression.
_Example: Check if the tooltip text of object "MyObject" equals the expected tooltip text "\\.jango":_Exceptionpublic void VerifyTooltipWCM(String FN, String ExpVal) throws Exception
VerifyTooltipWCM in interface IOKW_StateFN - Funktionaler Name des ObjektsExpVal - Erwarteter Wert als Wildcardmatch.
\~english
Checks the tooltip text of an object. The expected Value is givan as WildCardMatch
The following wildcards can be used:
- "?" - exactly one character is masked
- "*" - (0-n) any number of characters to be masked
- "#" - exactly one number [0..9] is masked
_Example: Check if the tooltip text of object "MyObject" equals the expected value "?jango":_Exceptionpublic void VerifyLabel(String FN, String ExpVal) throws Exception
VerifyLabel in interface IOKW_StateFN - Funktionaler Name des ObjektsExpVal - Erwarteter Wert
\~english
Verifies the label of a GUI-object.Exceptionpublic void VerifyLabelWCM(String FN, String ExpVal) throws Exception
VerifyLabelWCM in interface IOKW_StateFN - Funktionaler Name des ObjektsExpVal - Erwarteter Wert
\~english
Verifies the Label of a GUI-object.Exceptionpublic void VerifyMaxLength(String FN, String ExpVal) throws Exception
VerifyMaxLength in interface IOKW_StateFN - Funktionaler Name des ObjektsExpVal - Erwarteter Wert, als String Zahl
\~english
Verifies the placeholder of a GUI-object.
_Example:_ Check if max. 10 characters in the object with FN = "Name" can be inserted:
\verbatim EN.VerifyMaxLength( "Name", "10" ) \endverbatimExceptionpublic void VerifyLabelREGX(String FN, String ExpVal) throws Exception
VerifyLabelREGX in interface IOKW_StateFN - Funktionaler Name des ObjektsExpVal - Erwarteter Wert
\~english
Verifies the Label of a GUI-object.Exceptionpublic void VerifyPlaceholder(String FN, String ExpVal) throws Exception
VerifyPlaceholder in interface IOKW_StateFN - Funktionaler Name des GUI-ObjektesExpVal - Erwarteter Wert
\~english
Verifies the placeholder of a GUI-object.
Example: Check whether the placeholder (text) of the object "MyObject" matches the expected value "Django":
\verbatim EN.VerifyPlaceholderWCM: "MyObjekt", "Django" \endverbatimExceptionpublic void VerifyPlaceholderWCM(String FN, String ExpVal) throws Exception
VerifyPlaceholderWCM in interface IOKW_StateFN - Funktionaler Name des ObjektsExpVal - Erwarteter Wert
\~english
Verifies the placeholder of the GUI object.
Wildcards are allowed in the expected value.
The following wildcards are supported:
* "?" - exactly one arbitrary character is masked
* "*" - (0-n) any characters are masked
* "#" - exactly one digit [0..9] can be masked
_Example: Check whether the placeholder (text) of the object "MyObject" corresponds to the expected value "*jango:_
\verbatim VerifyPlaceholderWCM: "MyObjekt", "*jango" \endverbatimExceptionpublic void VerifyPlaceholderREGX(String FN, String ExpVal) throws Exception
VerifyPlaceholderREGX in interface IOKW_StateFN - Funktionaler Name des ObjektsExpVal - Erwarteter Wert
\~english
Verifies the placeholder of the GUI object.
Regular expressions as expected values are allowed.
_Example: Check whether the placeholder (text) of the object "MyObject" corresponds to the expected value "\\.jango":_
\verbatim VerifyPlaceholderREGX: "MyObjekt", "$Django" \endverbatimExceptionpublic void VerifyValue(String FN, String ExpVal) throws Exception
VerifyValue in interface IOKW_StateFN - Funktionaler Name des ObjektsExpVal - Erwarteter Wert
\~english
Checks the standard value of an object (in most cases this is the displayed text).
The expected value is exactly, i.e. without wildcards, specified.
_Example: Check if the value (text) of object "MyObject" equals the expected value "Django":_Exceptionpublic void VerifyValueREGX(String FN, String ExpVal) throws Exception
VerifyValueREGX in interface IOKW_StateFN - Funktionaler Name des ObjektsExpVal - Erwarteter Wert
\~english
Checks the standard value of an object (in most cases this is the displayed text). The expected Value is givan as Regularexpression
_Example: Check if the value (text) of object "MyObject" equals the expected value "Django":_Exceptionpublic void VerifyValueWCM(String FN, String ExpVal) throws Exception
VerifyValueWCM in interface IOKW_StateFN - Funktionaler Name des ObjektsExpVal - Erwarteter Wert / Sollwert.
\~english
Checks the standard value of an object (in most cases this is the displayed text). The expected Value is givan as Regularexpression
The following wildcards can be used:
* "?" - exactly one character is masked
* "*" - (0-n) any number of characters to be masked
* "#" - exactly one number [0..9] is masked
_Example: Check if the value (text) of object "MyObject" equals the expected value "Django":_Exceptionpublic void FileCreate(String PATH) throws Exception
FileCreate in interface IOKW_StatePATH - Datei, welches angelegt werden soll.
\~english
Creates the given directory.
After executing the keyword, the given file is exist.
-# If the file exists, then does not happen further.
-# If the file does not exist, it will be created with all parent directories.Exceptionpublic void FileDelete(String fpsPathAndFileName) throws Exception
FileDelete in interface IOKW_StatefpsPathAndFileName - Vollständiger Pfad und Dateiname.
\~english
Deletes the given file.
If the file does not exist, then this keyword ends without error message and an exception will not rais.
- OKW-Parser is included.
- widcards are in the filename allowed.Exceptionpublic void FilesDelete(String fpsDirPath, String fpsFileMatch) throws Exception
FilesDelete in interface IOKW_StateExceptionpublic void DirectoryDelete(String PATH) throws Exception
DirectoryDelete in interface IOKW_StatePATH - Vollständiger Pfad und Dateiname.
\~english
Deletes the given file.
If the file does not exist, then this keyword ends without error message and an exception will not rais.
- OKW-Parser is included.
- widcards are in the filename allowed.
\note
This keyword ensures that _after_ execution, the specified file or files do not (no longer) exist.
If the given file _not_ exists, _the keyword is terminated without an error message_ and an exception is raised.
\par Siehe auch
- EN::DirectoryDelete(string)
- Core::DirectoryDelete(string)
- OK::DirectoryDelete(string)
- NOK::DirectoryDelete(string)
- IOKW_State::DirectoryDelete(string)Exceptionpublic void DirectoryCreate(String PATH) throws Exception
DirectoryCreate in interface IOKW_StatePATH - Verzeichniss welches angelegt werden soll
\~english
Creates the given directory.
After executing the keyword, the given directory is available.
-# if the directory exists, then does not happen further.
-# If the directory does not exist, it will be created with all parent directories.Exceptionpublic void VerifyFileExists(String fpsPathAndFileName, String ExpVal) throws Exception
VerifyFileExists in interface IOKW_StatefpsPathAndFileName - Pfad und Name der Datei, die Geprüft werden sollExpVal - Erwarteter Wert. Möglich Werte sind: "JA"/"NEIN"/"${IGNORIERE}"Exceptionpublic void VerifyIsFile(String fpsPathAndFileName, String ExpVal) throws Exception
VerifyIsFile in interface IOKW_StatefpsPathAndFileName - Pfad und Name der Datei, die geprüft werden soll.ExpVal - Erwarteter Wert. Möglich Werte sind: "JA"/"NEIN"/"${IGNORIERE}"Exceptionpublic void VerifyDirectoryExists(String fpsPathAndFileName, String ExpVal) throws Exception
VerifyDirectoryExists in interface IOKW_StateExpVal - Erwarteter Wert. Möglich Werte sind: "JA"/"NEIN"/"${IGNORIERE}"
\~englishExceptionpublic void CopyFile(String fpsSourcePathAndFileName, String fpsDestinationPathAndFileName) throws Exception
CopyFile in interface IOKW_StateExceptionpublic void VerifyMinLength(String FN, String ExpVal) throws Exception
VerifyMinLength in interface IOKW_StateFN - Funktionaler Name des ObjektsExpVal - Erwarteter Wert, als String Zahl
\~english
Verifies the placeholder of a GUI-object.
_Example:_ Check if min. 3 characters in the object with FN = "Name" have be inserted:
\verbatim EN.VerifyMinLength( "Name", "3" ) \endverbatimExceptionpublic void VerifyErrorMSG(String FN, String ExpVal) throws Exception
VerifyErrorMSG in interface IOKW_StateFN - Funktionaler Name des ObjektsExpVal - Erwarteter Wert
\~english
Checks error messages in forms validated with Angular.Exceptionpublic void VerifyErrorMSG_WCM(String FN, String ExpVal) throws Exception
VerifyErrorMSG_WCM in interface IOKW_StateFN - Funktionaler Name des ObjektsExpVal - Erwarteter Wert
\~english
Checks error messages in forms validated with Angular.
The value is specified as a wildcard match.
The following placeholders are possible:
"?" - exactly one character is masked
"*" - (0-n) any character is masked
"#" - exactly one digit [0..9] can be masked
Example: Check whether the value (text) of the object "MyObject" corresponds to the expected value.
Value "\\\.jango" corresponds to:_ Exceptionpublic void VerifyErrorMSG_REGX(String FN, String ExpVal) throws Exception
VerifyErrorMSG_REGX in interface IOKW_StateFN - Funktionaler Name des ObjektsExpVal - Erwarteter Wert
\~english
Regular expressions as setpoints are allowed.
Checks error messages in forms validated with Angular.
Example: Check whether the value (text) of the object "MyObject" corresponds to the expected value.
Value "\\.jango" corresponds to:_ ExceptionCopyright © 2021 OpenKeyWord. All rights reserved.