Sikuli Combat Record

Source: Internet
Author: User
Tags sikuli

1. Installation

Win32Util.dll:Can ' t load 32-bit. dll on a AMD platform bit

Need to switch to 32-bit JRE, version, 1.7 Test no problem

Getting the VisionProxy.dll:Can not find dependent libraries

It is recommended that you install Sikulix, and then set the environment variable to add the Sikulix Libs directory in path.

2. Development

The difference between click (Patten) and click (Patten.targetoffset ())

When inputting Chinese, can use paste way input.

When the page cannot be scrolled using the PageDown or PageUp keys, the control is toggled by S.click (Key.tab), which is the analog TAB key, for scrolling purposes.

3. Operation mode

Jar package, when hitting a jar package, when there is a main function, be careful to select the launch configuration.

At run time, you are prompted not to find the main manifest property

This is because the interface class is not specified. In the jar package, there is a manifest.mf in the Meta-inf. The file is a manifest file that is used to record configuration information.

In my jar package, the following properties are included

Manifest-version: The version used to define the Manifest file

Rsrc-class-path: No query to the exact meaning, but guess is used to set the path of the dependent package

Class-path: the application or class loader uses this value to build an internal class search path

Rsrc-main-class: Specifies the Ingress class, which should be a custom parameter for eclipse

Main-class: The original parameter of the specified entry class, typically exported with eclipse, is specified as Org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader

In Rsrc-main-class Add the class file for the ingress classes, note that you cannot bring a. class suffix

The coding format of the project is Utf-8, in the Sikuli input Chinese, the input is garbled.

Simply specify to execute the jar package with utf-8, i.e. add the parameter-dfile.encoding=utf-8 to the command, where-D is used to set the system variable value.

4. Advantages and limitations of Sikuli

1) resolves an issue where selenium cannot manipulate the Windows UI, such as downloading, selecting files when uploading, or using div to simulate pop-up windows in different frames, which can be very difficult to identify.

2) Get started very quickly, you can use Sikuli IDE input, at the same time the picture of the way, easy to understand, good readability.

3) Support the Java, Python and other languages, and selenium can seamlessly docking, just import Sikuli script jar package.

Limit

1) into also pictures, defeats also pictures. The size of the picture can not change the slightest, so if the screen resolution, browser zoom and so on, resulting in a change in the size of the picture, do not want to general, maintenance will be quite painful. Multiple sets of pictures may have to be maintained for different machines to perform. So, it is prudent to use.

In the comprehensive, only by selenium force really did not recruit, I will go to use Sikuli. Or, to quickly develop test cases, for small projects of that fast track approach, saving the development cost of test cases.

Sikuli Combat Record

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.