silktest

How to get the button ID of a button in SapToolbarControl?

一世执手 提交于 2019-12-12 02:58:16
问题 I have a SapToolbarControl (MicroFocus) and I want to press a button of that toolbar. However, any of the methods selectButton(), selectContextButton() or pressContextButton() require a parameter called id of type String . I was unable to find out where to get the ID from. I am using Silk4J 16 Hotfix 2 in Eclipse Luna. This also happens in Silk4J 15.5. 回答1: The SAP automation API provides a method called GetButtonId which is not implemented by Silk4J. The method takes the position of the

SilkTest base state unrecognized after consecutive tests run

不羁岁月 提交于 2019-12-08 03:53:00
问题 In my testing environment, we have classes that perform certain actions, some of them using SilkTest stuff. The test procedures are defined by XML files that we parse, turn into ActionImpl classes, and perform stuff with. For example, the following will login to our app, switch users, and then restart the server: <Script refBean="validateState" retry="false"> <DataGroups> <Step action="log" mod="5.10.13 - Step 1" /> <Step action="switchUsers" target="mlane" /> <Step action="restartServer" />

SilkTest base state unrecognized after consecutive tests run

混江龙づ霸主 提交于 2019-12-08 02:57:31
In my testing environment, we have classes that perform certain actions, some of them using SilkTest stuff. The test procedures are defined by XML files that we parse, turn into ActionImpl classes, and perform stuff with. For example, the following will login to our app, switch users, and then restart the server: <Script refBean="validateState" retry="false"> <DataGroups> <Step action="log" mod="5.10.13 - Step 1" /> <Step action="switchUsers" target="mlane" /> <Step action="restartServer" /> </DataGroups> </Script> In the case of the restartServer action, the code eventually calls the

Selenium - How to capture all web page elements and associated locators on a page?

心已入冬 提交于 2019-12-06 07:28:47
问题 What Java/Selenium commands can I use to capture/get/output for all elements and associated element locators for a single webpage? The Selenium IDE allows you to inspect one element at a time. That is a problem if you have thousands of elements to automate. Is there a tool or Java/selenium command that I can use to get all of the objects/elements on my web page at once and then maybe customize the output to suite my needs? If you have any experience with SilkTest, I'd like something analogous

Selenium - How to capture all web page elements and associated locators on a page?

三世轮回 提交于 2019-12-04 12:57:59
What Java/Selenium commands can I use to capture/get/output for all elements and associated element locators for a single webpage? The Selenium IDE allows you to inspect one element at a time. That is a problem if you have thousands of elements to automate. Is there a tool or Java/selenium command that I can use to get all of the objects/elements on my web page at once and then maybe customize the output to suite my needs? If you have any experience with SilkTest, I'd like something analogous to generating Window Declarations in SilkTest. SilkTest's Record Window Declaration tool captures tag