Why does the Select Application dialog box not display my mobile browsers?
Silk Test Classic might not recognize a mobile device or emulator for one of the following reasons:
Reason
|
Solution
|
The emulator is not running.
|
Start the emulator.
|
The Android Debug Bridge (adb) does not recognize the mobile device.
|
To check if the mobile device is recognized by adb:
- Navigate to the Android Debug Bridge (adb) in the
Android SDK installation folder. If the
Android SDK is not installed, navigate to
C:\Program Files (x86)\Silk\SilkTest\ng\agent\plugins\com.microfocus.silktest.adb_17.5.0.<build number>\bin to use the adb that is installed with
Silk Test Classic.
- Hold
Shift and right-click into the
File Explorer window.
- Select
Open command window here.
- In the command window, type
adb devices to get a list of all attached devices.
- If your device is not listed, check if USB-debugging is enabled on the device and if the appropriate USB driver is installed.
- If you get the error
adb server is out of date, an additional adb server might be running. For additional information, see
What can I do if the connection between the Open Agent and my device is unstable?.
|
The version of the operating system of the device is not supported by
Silk Test Classic.
|
For information on the supported mobile operating system versions, refer to the
Release Notes.
|
The USB driver for the device is not installed on the local machine.
|
Install the USB driver for the device on the local machine. For additional information, see
Installing a USB Driver.
|
USB-debugging is not enabled on the device.
|
Enable USB-debugging on the device. For additional information, see
Enabling USB-Debugging.
|
Why does
Silk Test Classic search for a URL in
Chrome for Android instead of navigating to the URL?
Chrome for Android might in some cases interpret typing an URL into the address bar as a search. As a workaround you can manually add a command to your script to navigate to the URL.
What do I do if the adb server does not start correctly?
When the Android Debug Bridge (adb) server starts, it binds to local TCP port 5037 and listens for commands sent from adb clients. All adb clients use port 5037 to communicate with the adb server. The adb server locates emulator and device instances by scanning odd-numbered ports in the range 5555 to 5585, which is the range used by emulators and devices. Adb does not allow changing those ports. If you encounter a problem while starting adb, check if one of the ports in this range is already in use by another program.
For additional information, see
http://developer.android.com/tools/help/adb.html.
What can I do if the connection between the Open Agent and my device is unstable?
If you have installed the
Android SDK or another tool that uses the Android Debug Bridge (adb), an additional adb server might be running in addition to the one that is used by
Silk Test Classic. If the running adb servers have different versions, the connection between the Open Agent and the device might become unstable or even break.
To avoid version mismatch errors, specify the path to the
Android SDK directory by setting the environment variable
SILKTEST_ANDROID_HOME, for example to
C:\Users\<user>\AppData\Local\Android\android-sdk. If the variable is not set, the adb version that is shipped with
Silk Test Classic is used.
Why do I get the error:
Failed to allocate memory: 8?
This error displays if you are trying to start up the emulator and the system cannot allocate enough memory. You can try the following:
- Lower the RAM size in the memory options of the emulator.
- Lower the RAM size of Intel HAXM. To lower the RAM size, run the
IntelHaxm.exe again and choose
change.
- Open the
Task Manager and check if there is enough free memory available. If not, try to free up additional memory by closing a few programs.
Why do I get the error "Silk Test cannot start the app that you have specified" during testing on an
iOS device?
This error might display for one or more of the following reasons:
Reason
|
Solution
|
The
iOS device is not in developer mode.
|
You can enable the developer mode in one of the following two ways:
- Connect the device to a Mac on which Xcode is installed, and start the app that you want to test on the device.
- Add your provisioning profiles to the device.
- Open Xcode.
- Select
.
- Right-click on the
iOS device.
- Select
Show Provisioning Profiles.
- Add your provisioning profiles.
|
You have recently updated the
iOS version of the device.
|
- Open Xcode.
- Select
.
- Wait unitl Xcode has processed the symbol files.
|
UI automation is not enabled on the
iOS device.
|
- Select
.
- Activate
Enable UI Automation.
|
The
Web Inspector is not activated on the
iOS device, while you are trying to test a mobile web application.
|
- Click
.
- Activate the
Web Inspector.
|
The app that you want to test was not built for the
iOS version of the
iOS device on which you are testing.
|
Use Xcode to build the app for the
iOS version of the device.
|
The
Software Update dialog box is currently open on the
iOS device.
|
Close the dialog box and disable automatic software updates:
- Select
.
- Deactivate
Updates.
|
Why does my
Android device display only the Back button in the dynamic hardware controls?
If the
Android or the
Android Emulator is screen-locked when you start testing, the device or Emulator might display only the button
Back in the dynamic hardware controls.
To solve this issue, stop the Open Agent, restart the device, and change the device settings to no longer lock the screen.
Why does my
Android device or emulator no longer display a keyboard?
To support unicode characters,
Silk Test Classic replaces the standard keyboard with a custom keyboard. When testing is finished, the original keyboard is restored. If an error occurs during testing, the custom keyboard might still be active and cannot be replaced.
To solve this issue, manually reset the keyboard under
.
Why does my device not respond during testing?
If the device, emulator, or Simulator is screen-locked when you start testing, and
Silk Test Classic is unable to unlock the screen, the device, emulator, or Simulator might stop responding to any actions.
To solve this issue, stop the Open Agent and change the device settings to no longer lock the screen.
Why can I not install the Information Service on a Mac?
When the
Allow apps downloaded from setting in the
General tab of the
Security & Privacy system preferences pane is set to
Mac App Store and identified developers, which is the default value, the following error message appears when opening the Information Service setup:
"SilkTestInformationService<version>.pkg" can't be opened because it is from an unidentified developer.
To solve this issue, use one of the following:
- Right-click the setup file and select
Open. A warning message will appear, but you will still be able to open the file.
- Set the
Allow apps downloaded from setting to
Anywhere.
- After attempting to open the file, navigate to the
General tab of the
Security & Privacy system preferences pane and click
Open Anyway.
Why is the Recording window black when recording an
Android app?
Android apps that require a higher level of security, for example apps that handle financial transactions, might have the
FLAG_SECURE flag set, which prevents
Silk Test Classic from capturing the app.
Silk Test Classic relies on screenshots or on a video of the
Android device during recording and will display a black screen of the device in the
Recording window, if the
Android app that you are testing has this flag set. To test such an app with
Silk Test, you have to contact the app development team, and ask them to un-set the FLAG_SECURE flag during testing.
Why does
Silk Test Classic not show a video when testing on an
Android emulator?
If the emulator is using the graphic card of your computer for better rendering, the video capturing of
Silk Test Classic might not work. To solve this, emulate the graphics in software:
- Open the
Android Virtual Device Manager.
- Click
Edit in the
Actions column of the emulator.
- Select
Software from the list in the
Emulated Performance area of the
Virtual Device Configuration dialog.
How can I change the installed version of Xcode?
If the version of Xcode that you are using is not supported by
Silk Test Classic, for example when you upgrade to the latest version of Xcode, an error message might appear when testing on
iOS.
To replace the installed version of Xcode with a supported version, download a supported Xcode version from
https://developer.apple.com/download/more/, and replace the unsupported version with the downloaded version. For information about the supported Xcode versions, refer to the
Release Notes.
What can I do if my Mac runs out of disk space?
Silk Test Classic uses Instruments to automate
iOS devices. This tool creates large log files in the
/Library/Caches/com.apple.dt.instruments directory, which might fill up disk space on the Mac. To solve this issue,
Micro Focus recommends regularly deleting these log files, either manually or by using a cronjob. For example, to delete the files each day at the same time, you could do the following:
- Type
sudo crontab -e into a Terminal. This opens an editor in which you can edit the crontab for root.
- Add the following line to the crontab:
0 2 1 * * find /Library/Caches/com.apple.dt.instruments -mtime +10 -delete
- Save the crontab.
In this example, all log files that are older than ten days will be deleted each day at 2 AM from the directory.