MarketSquare / MarketSquare/robotframework-SikuliLibrary

if image is not found, match score is 0, but keyword should say that image is not found

Open
#21 2 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

due i'm moving from window to linux the same tests , i make a mistake with the use of the \\ or // so, in windows, this path works

${IMAGE_DIR} ${CURDIR}\\img

but in linux, it should to be

${IMAGE_DIR} ${CURDIR}//img

so, when i try

Screen Should Contain image.png

the keyword fails, but the reason is that image.png is not found in ${CURDIR}\\img path , and no that screen doesn't contains image.png

i think the keyword should return a special message if the image is not found.

tips :
to make the path operative system indipendent, we can use /

@rainmanwy what do you think? i'm your worst nightmare? :)

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 locating the implementation and tests for the Screen Should Contain keyword, then reproduce the missing-image case with the ${IMAGE_DIR} path shown in the issue. Check how a match score of 0 is currently reported. Done means a missing image produces a distinct, accurate message rather than implying that the image was absent from the screen.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
testing-qa
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.