MarketSquare / MarketSquare/robotframework-SikuliLibrary

Test is failing with error BufferedImage: type not supported: 0 --- please report this problem

Open
#137 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
163
Forks
60
PR merge metrics
No merged PRs in 30d

Description

![playbuttonmid](https://user-images.githubusercontent.com/69799852/96159740-4e75b980-0f15-11eb-890c-f0fa12c72886.jpg)
Hello,
I am using RobotFramework in our virtual environment. We have installed SikuliLibrary 2.0.0 and running the tests in Pycharm CE.

We want to run a test where want to click on the play button in the web-player.
When we run the test case it fails on this error message:

```
Selecting a program:: Quick smoke test | FAIL |
org.sikuli.script.SikuliXception: Finder::isValid: image to search is empty
------------------------------------------------------------------------------
play episode-FirstDates:: This is some basic information about the... | FAIL |
1 critical test, 0 passed, 1 failed
1 test total, 0 passed, 1 failed
==================================
```

In the log I can see this specific error:

```
Params: [/Users/tuanminhhoang/Documents/development/robot-scripts/ui-test-automation/img/playbuttonUI.jpg]
[error] Finder2: makeMat: BufferedImage: type not supported: 0 --- please report this problem
[error] Finder: /Users/tuanminhhoang/Documents/development/robot-scripts/ui-test-automation/img/playbuttonUI.jpg: (88x72): conversion error --- find will fail
```

I attached the images that I want to click on in the web-player. Both are failing.

Does anyone have any tips?

![playbuttonmid](https://user-images.githubusercontent.com/69799852/96159791-5b92a880-0f15-11eb-836a-0429c4128775.jpg)

![playbuttonUI](https://user-images.githubusercontent.com/69799852/96159684-3c941680-0f15-11eb-91a1-221960b5f2e1.jpg)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the RobotFramework test in PyCharm with SikuliLibrary 2.0.0 and the attached playbuttonUI.jpg or playbuttonmid image. Inspect the SikuliX log around Finder2 and the reported image paths. Done means the supplied image is accepted and the test can locate and click the web-player play button.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
testing-qa
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.