NOTICE: Our Community is moving. Get more information. Updated information on a New Login Process
We SilkTest API version 18.5 (not SilkTest Classic or Workbench).
We test a web application, that might open the Java Security Warning dialog or not. If the dialog comes up, it must be confirmed. But we are not even able to check whether the dialog is present.
With "Windows Locators..." in Silk Test Classic, I got the locator of the window. Using this value, I tried:
expecting to get the information whether the warning dialog is present or not. But I get the exception No application configuration present.
I found some descriptions about setting the application configuration in Silk Test Classic, but they don´t help for SilkTest API.
So how can I set the application configuration for this dialog in SilkTest API?
Thanks for any idea.
It looks like you are using Silk4J based on the code snippet.
Please note that you should be able to record locators directly from Eclipse if you have installed the Silk4J plugin.
The error "No application configuration present" would indicate that you have not attached to any applications that you wish to test. Generally this is done by executing a BaseState/BrowserBaseState/MobileBaseState or by explicitly attaching to the desired applications using the desktop.attach() method.
For example, if you are testing IE, execute the following at the start of the test:
BrowserBaseState baseState = new BrowserBaseState(BrowserType.InternetExplorer, "demo.borland.com");baseState.execute(desktop);
This will launch IE at the specified URL and enable Silk4J to interact with the browser.
I would recommend installing the Silk4J plugin to Eclipse and then creating a new Silk4J project. This will create a project with all the required settings and resources to test your application.
In reply to RobertM:
In reply to GerhardHeil: