This shows you the differences between two versions of the page.
user_object_adaptor [2025/01/28 13:53] montse |
user_object_adaptor [2025/03/13 08:21] (current) ale |
||
---|---|---|---|
Line 49: | Line 49: | ||
* The Input parameter is the command itself. The command has to be preceded with the string **"cmd /c"**, for example:\\ **"cmd /c dir /p"** to list the files in a directory, or **"cmd /c copy pathfileOrg pathfileDst"** to copy one file to another. | * The Input parameter is the command itself. The command has to be preceded with the string **"cmd /c"**, for example:\\ **"cmd /c dir /p"** to list the files in a directory, or **"cmd /c copy pathfileOrg pathfileDst"** to copy one file to another. | ||
- | * **executeCommandParam**: | + | * **executeCommandParam**: executes a command parameter in the Windows operating system. |
* **executeJavaScript(NameFunction):** executes the javaScript function whose name is entered as a parameter. The function can have input parameters and return a value. The input parameters will be the variables defined with setVariable, or the results of other predefined functions. The value that returns will be saved in the output variable.\\ Javascript Version ECMAScript 5. | * **executeJavaScript(NameFunction):** executes the javaScript function whose name is entered as a parameter. The function can have input parameters and return a value. The input parameters will be the variables defined with setVariable, or the results of other predefined functions. The value that returns will be saved in the output variable.\\ Javascript Version ECMAScript 5. | ||
Line 71: | Line 71: | ||
* **saveRepositoryAsEvidence**: generates the repository(s) used as evidence of the step. | * **saveRepositoryAsEvidence**: generates the repository(s) used as evidence of the step. | ||
- | * **sendEmail():** sends an e-mail with the results of the test cases that are within a Test Set and were executed before the test case containing this function.\\ \\ It has the following fields: | + | * **sendEmail():** sends an e-mail with the results of the test cases that are within a Test Set and were executed before the test case containing this function. It has the following fields: |
- | * To: addresses to send the e-mail to, separated by semicolons. | + | * To: addresses to send the e-mail to, separated by semicolons. |
- | * Subject: subject of the email. | + | * Subject: subject of the email. |
- | * Body: body of the e-mail. | + | * Body: body of the e-mail. |
- | * TS Results: if checked, the following will be added to the subject and body of the mail:\\ - Subject: (Result- ok/ko/not completed).\\ - Body: (TestCaseNameN. TCDN Description - [Result - ok/ko].\\ - URL - (url of the evidence file for this testcase in TAST). | + | * TS Results: if checked, the following will be added to the subject and body of the mail:\\ - Subject: (Result- ok/ko/not completed).\\ - Body: **(TestCaseNameN. TCDN Description - [Result - ok/ko]**.\\ - URL - (url of the evidence file for this testcase in TAST). |
- | * Attachment: (OPTIONAL, multiple field, will go last). Path to the file(s) to be attached to the mail. | + | * Attachment: (OPTIONAL, multiple field, will go last). Path to the file(s) to be attached to the mail. |
* **sendKeys(String, Delay in miliseconds):** this function sends the keys one by one where the cursor is at this moment. It has two input parameters: | * **sendKeys(String, Delay in miliseconds):** this function sends the keys one by one where the cursor is at this moment. It has two input parameters: | ||
Line 83: | Line 83: | ||
* **sendKeysCombination(Key+Key, Delay in miliseconds):** this function sends the combinations of the keys (or Java Robot KeyEvent API) one by one separated by a + where the cursor is at this moment. For Java Robot KeyEvent API see link: 'https://docs.oracle.com/javase/7/docs/api/java/awt/event/KeyEvent.html'.\\ Receive two parameters: Combination of keys to send, for example: “Control+a”, “Control+z”, “Control+alt+3”, “delete”, “VK_CONTROL+VK_A”, “VK_CONTROL+VK_ALT+VK_A”, “VK_DELETE” etc… (Optional) Delay in milliseconds between keys, for example 200.\\ \\ The list of allowed Keys are: ADD, ALT, ARROW_DOWN, ARROW_LEFT, ARROW_RIGHT, ARROW_UP, BACKSPACE, BACK_SPACE, CANCEL, CLEAR, COMMAND, CONTROL, DECIMAL, DELETE, DIVIDE, DOWN, END, ENTER, EQUALS, ESCAPE, F1, F10, F11, F12, F2, F3, F4, F5, F6, F7, F8, F9, HELP, HOME, INSERT, LEFT, LEFT_ALT, LEFT_CONTROL, LEFT_SHIFT, META, MULTIPLY, NULL, NUMPAD0, NUMPAD1, NUMPAD2, NUMPAD3, NUMPAD4, NUMPAD5, NUMPAD6, NUMPAD7, NUMPAD8, NUMPAD9, PAGE_DOWN, PAGE_UP, PAUSE, RETURN, RIGHT, SEMICOLON, SEPARATOR, SHIFT, SPACE, SUBTRACT, TAB, UP | * **sendKeysCombination(Key+Key, Delay in miliseconds):** this function sends the combinations of the keys (or Java Robot KeyEvent API) one by one separated by a + where the cursor is at this moment. For Java Robot KeyEvent API see link: 'https://docs.oracle.com/javase/7/docs/api/java/awt/event/KeyEvent.html'.\\ Receive two parameters: Combination of keys to send, for example: “Control+a”, “Control+z”, “Control+alt+3”, “delete”, “VK_CONTROL+VK_A”, “VK_CONTROL+VK_ALT+VK_A”, “VK_DELETE” etc… (Optional) Delay in milliseconds between keys, for example 200.\\ \\ The list of allowed Keys are: ADD, ALT, ARROW_DOWN, ARROW_LEFT, ARROW_RIGHT, ARROW_UP, BACKSPACE, BACK_SPACE, CANCEL, CLEAR, COMMAND, CONTROL, DECIMAL, DELETE, DIVIDE, DOWN, END, ENTER, EQUALS, ESCAPE, F1, F10, F11, F12, F2, F3, F4, F5, F6, F7, F8, F9, HELP, HOME, INSERT, LEFT, LEFT_ALT, LEFT_CONTROL, LEFT_SHIFT, META, MULTIPLY, NULL, NUMPAD0, NUMPAD1, NUMPAD2, NUMPAD3, NUMPAD4, NUMPAD5, NUMPAD6, NUMPAD7, NUMPAD8, NUMPAD9, PAGE_DOWN, PAGE_UP, PAUSE, RETURN, RIGHT, SEMICOLON, SEPARATOR, SHIFT, SPACE, SUBTRACT, TAB, UP | ||
+ | |||
+ | * **sendKeysCombinationThread:** this function runs in a separate thread and sends the key combinations (Java Robot KeyEvent API) one by one separated by a + where the cursor is at the moment. The first parameter indicates how long to wait before executing. The function can be used before calling the method that needs key interaction. | ||
* **sendKeysPaste(Text):** this function executes pasting the text where the cursor is at this moment. Like buffered text paste using “Control+V” combination. Receive one parameter: Text to paste, for example: ~!@#$%^&*()_+{}|:\”<>? abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ çÇáÉñÑä | * **sendKeysPaste(Text):** this function executes pasting the text where the cursor is at this moment. Like buffered text paste using “Control+V” combination. Receive one parameter: Text to paste, for example: ~!@#$%^&*()_+{}|:\”<>? abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ çÇáÉñÑä |