i want to run " .bat file extension" using silk test classic.
Provide me code for this and do the needful.
i want to run " .bat file extension" using silk test classic.
Provide me code for this and do the needful.
I use Silktest16 (hotfix3) with my HTML application.
With IE11 or Chrome 45, I can run a test suite that takes 1.5 hours to complete.
If I run that same test suite against Firefox 35, it takes over 10 hours to complete.
Has anyone else experienced this issues and if so, is their a solution?
Thanks,
Phil
Hi All,
We just installed SilkTest version 17 to a new machine. We have Adobe Reader XI. We have a pdf report that opens from a web application. It seems that the SilkTest does not able to recognize the pdf report.
This line of code fails during execution.
Desktop.Find("//BrowserApplication//BrowserWindow//StaticText[@caption='*Adobe Reader']"). Exists()
We did a Locator Spy over the pdf report. It doesn't seem recognize anything in the pdf report. Normally it will highlighted when position the mouse over an object.
Any setting options we need to do to for PDF report?
Thank you
Hi,
Am getting an error "Time out expired after launching application. The requested object "//BrowserApplication[@browsertype="Google Chrome"]" was not found within the timeout of 30 seconds. Ensure that the "Silk Test Chrome Extension" is installed and enabled. To see your Chrome extensions, go to chrome://extensions." I am using below Silk Test and Chrome versions. Could some one help on this.
Silk Test 17.5 Hot fix
Chrome 52 / Chrome 53.
Thank You
shankar
Given the following HTML, I want to select an entry from a select component by its name.
<select id="1">
<option value="volvo">Volvo</option>
<option value="saab">Saab</option>
<option value="mercedes">Mercedes</option>
<option value="audi">Audi</option>
</select>
<select id="2">
<optgroup label="Swedish Cars">
<option value="volvo">Volvo</option>
<option value="saab">Saab</option>
</optgroup>
<optgroup label="German Cars">
<option value="mercedes">Mercedes</option>
<option value="audi">Audi</option>
</optgroup>
</select>
The following works:
desktop.<DomListBox> find("//SELECT[@id='1']").select("Mercedes");
This throws an exception:
desktop.<DomListBox> find("//SELECT[@id='2']").select("Mercedes");
com.borland.silktest.jtf.common.InvalidItemIdentifierException: The specified item 'Mercedes' could not be found.
Since the only difference between the two selects is the use of option groups, I guess this is the cause of the problem. Are they not supported or am I using it wrong?
My ugly workaround is to click on the select and select an entry by typing its value with typeKeys. What is the recommended way to select from an option group?
What is the recommended way to detect and handle browser dialogs (authentication dialogs, download dialogs etc.) with Silk4J. I don't seem to be able to identify them using the Locator Spy and have no idea how to retrieve XPath-values for them.
Any help would be highly appreciated!
The usecases include:
I have a question about the file paths used in the SilkTest config files.
For the project I'm working on I need to commit the config file of a SilkTest project to our central code repository. For this reason, the file paths cannot be absolute, since I cannot assume that other developers have placed their checkout in the same directory as I have.
Hence, I need to use relative paths.
The only solution I have found to this is the following:
The problem with this solution is that these are not properly relative paths. They can more accurately be described as an absolute path (given by an environment variable) concatenated with a relative path, which effectively is the same as an absolute path. To put it another way, the above solution only allows you to specify paths relative to an absolute position in the file system, and since this absolute position can change based on the specific issue a developer happens to be working on at the moment, this solution is insufficient.
What I need is to be able to specify a path relative to the location of the config file. Is there a way to do that?
Issue:
Silk test fails to play back and click on sub menu item with the error " Could not find object", the sub menu item can only be made clickable if the parent menu item is is rolled over 1st with the mouse. In other automation testing tools, e.g. Sahi, the link can be clicked without the need to "roll over" the parent menu item.
The same error also occurred when the object is visible on the page.
SilkTest sometimes creates second Browser window object when it does not need to with the same BrowserApplication name (as seen in recorded code below). This also causes playback to fail in some of our other test scripts we have been evaluating.
Does anyone know a work around to recording/playback clicking a sub menu item without having write a whole bunch of code to replace the recorded code and to stop SilkTest creating lots of unnecessary browser window objects?
Thanks.
Scenario: record these steps using Visual Studio 2015 C# with Silk Test 17.0:
Steps:
Navigate to "https://www.microsoft.com/en-gb/" > left click "Store" > roll mouse over "Devices" > left click "PCs & tablets" > observe
----
Playback:
Actual Result: Silk test fails to playback and displays and error: Could not find object '//a[@textContents='PCs & tablets']'.
Expected Result: PCs & tablets web page is displayed
Observations: A BrowserWindow object is created when it does not need to be.
----
Recorded Code generate by silk test in pink:
using System;
using System.Collections.Generic;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using SilkTest.Ntf;
using SilkTest.Ntf.XBrowser;
namespace Silk4NETProject1.Keyword_Driven_Tests
{
[SilkTestClass]
public class UnitTest1
{
private readonly Desktop _desktop = Agent.Desktop;
[TestInitialize]
public void Initialize()
{
// Go to web page 'https://www.microsoft.com/en-gb/'
BrowserBaseState baseState = new BrowserBaseState();
baseState.Execute();
}
//
[TestMethod]
public void TestMethod1()
{
BrowserApplication webBrowser = _desktop.BrowserApplication("microsoft_com");
BrowserWindow browserWindow = webBrowser.BrowserWindow("BrowserWindow");
browserWindow.DomLink("Store-navigation").Click(MouseButton.Left, new Point(57, 22));
BrowserApplication webBrowser2 = _desktop.BrowserApplication("microsoftstore_com");
BrowserWindow browserWindow2 = webBrowser2.BrowserWindow("BrowserWindow");
//here is where it fails
browserWindow2.DomLink("PCs & tablets").Click(MouseButton.Left, new Point(85, 36));
//Actual Result: Could not find object '//a[@textContents='PCs & tablets']'.
}
}
}
In silk visual test, There is a select button in the webpage 1 and Webpage 2 with same properties, How do i differentiate the 2 select button objects in both the pages based on the locator paths for both the objects?
Please send me any documentation creating a new locator paths.
Do anybody have documentation regarding creating locator paths to make the objects unique?
I'm using Silk Test Workbench 17.0, .NET script.
I have a control to enter a time in mm:ss format.
When I record, I get:
.Control("00 00").Click(MouseButton.Left, New Point(5, 10))
.Control("00 00").TypeKeys("<#0><#2>:<#1><#5>")
where "00 00" is the current value of the control.
I want to change this so it will work for any current value.
I read that there is some way to use the label before the control to identify it, but I can't find any examples that show how to do this.
Hallo Folks!
Ist it somehow possible to find and click on an object by its variable (String) ?
Like this: (The code below is not working doe)
desktop.<DomElement>find("//BrowserApplication//BrowserWindow//" + THESTRINGVARIABLE).click(MouseButton.LEFT);
Thank you,
Juzou
Hello,
I am having trouble opening a new script. The New script button, and menu option are disabled, (a dark grey color) and I cannot seem to remedy this problem. Is this a common occurrence?
Also, I cannot get silk to access and play back two different processes (or applications) from a single script. Any help?
Thank you
Hi Team ,
I need to integrate SILK tool with another tool. Is there any COM dll available for SILK integration, or is there any way of integrating SILK through REST API?
Good
I Wanted to ask if it is possible to know what the encryption method we need to encrypt your passwords in ActiveData. It is that there is encrypth function but wanted to know, to have something of their own to encrypt
Thanks
(translate for Google Translate, sorry for this but my english is bad)
Hi all,
Log into Silk Central, navigate to Execution Planning, click on any Execution Plan, then click the Edit button under Properties.
From the Edit Execution Plan, we can choose the Build for the execution plan. If the test plan has Build version 4 assigned, and now we have a newer build version like Build 5, how can we update the test plan to use "Build 5" automatically or through some global setting.
We can see that it has option like "Read from Build Information File". We are not too sure if this can be used for this purpose.
Thank you for any info!
Hello all,
I've been running into an issue testing different releases of my company's software with Silktest Workbench (13.5) that I wanted to try and get some advice on.
There's an environment variable on my machine that stores a partial path to the process that I want to test (i.e. WRK_HOME contains C:\Workspace\Home1.1, but the process is located in C:\Workspace\Home1.1\common\bin\process.exe). I want to use this variable because when the product is updated, the directory changes (i.e. from C:\Workspace\Home1.1 -> C:\Workspace\Home1.2), and the process is also stored in this directory, meaning that it will only run the release it was recorded in unless I manually change it.
After looking at the documentation, I noticed that there were only a select number of environment variables that could be used in the process name/work directory, so I can't use WRK_HOME in the process name/work directory field of the visual test properties. Other than making a new database for each software release (i.e. one for 1.1, one for 1.2), is there a way for me to handle or replicate the usage of environment variables in Workbench?
If my explanation doesn't make sense, I can gladly reiterate.
Thanks for the assistance!
Hi everybody,
I test a web application with Silk4j.
This application displays a chat box for some users (depending on their permission): the chat box is a form :
<form name="frmChat" id="frmChat" action="">
The chat box looks like a JDialog but as I sais is programmed as a form
My problem is during test execution, as soon as this chat box appears, seams that Silk test runner hangs and is lost.
I did a debug. I found out the runner comes back If I click manually somewhere in my eclipse!
Also I saw this two links which look like my problem:
http://community.microfocus.com/borland/test/silk_test/w/knowledge_base/10557.why-does-silktests-execution-hang-when-a-modal-dialog-appears-in-firefox.aspx
http://community.microfocus.com/borland/test/silk_test/f/29/t/11162.aspx
But still no luck.
I'm using Silk Test 17.
Any help will be a lot appreciated!
Hi everybody,
I run my Silk4j tests once on IE, once on Chrome using Silk Test 17.
On IE everything is fine.
On Chome I have a problem with OPT_WAIT_RESOLVE_OBJDEF.
Here is my problem:
Can anybody tell me where is coming from this fix 20 seconds in Chrome?
Best regards,
Hani
Does Silk Test 17 support for JavaFX?