Failed to get_keyword_names!

オープン
#177 コメント 21 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
docker, java

調査の方向性

issue の Docker セットアップと、test.robot で使用される SikuliLibrary リモートサーバーから始め、コンテナ内で robot test.robot を実行して失敗を再現します。報告されたリモートサーバーのエンドポイントでの get_keyword_names の失敗を追跡し、テストのセットアップとティアダウンが報告されたエラーなしで完了することを確認します。

索引モデルが issue の本文から書いたものです。

説明

hi Team,
I try to run skuliLibrary framework under a docker file.
The scenarios is as follow:
1.Create a docker file

FROM node:14-alpine

RUN apk update \

  && apk add build-base python3

RUN mkdir /.npm \
  && chmod 777 /.npm

RUN apk add --update  py3-pip
RUN apk add openjdk11
# CHROME
RUN apk --no-cache upgrade && apk add --no-cache chromium chromium-chromedriver
RUN apk add libexif udev

# ROBOT + LIBRARIES
RUN pip3 install robotframework && pip3 install robotframework-selenium2library  && pip3 install robotframework-jsonlibrary && pip3 install robotframework-jsonlibrary &&  pip3 install robotframework-SikuliLibrary

RUN apk update && apk add bash

ENTRYPOINT ["/bin/terraform"]
  1. docker build to build the image
  2. docker run -it -d -P robotfram ==>-P option to forword all ports to the host machine which is a windows machine
  3. docker cp "C:\Users\nboujelben\Downloads\test" sleepy_goodall:/home==>copy the test folder from local to my container
  4. my test file named robot.test and it contains a simple example:
*** Settings ***
Documentation     Sikuli Library Demo
Library           Selenium2Library
Library           SikuliLibrary
Test Setup        Run Keywords      Start Sikuli Process    AND  Initialize all images
Test Teardown     Stop Remote Server



*** Keywords *** 
Initialize all images
    Add Image Path      ${CURDIR}\\img
Login to Browser with download preferences
    [Documentation]   This one is without specifying download location
    
    Open Browser  https://www.docdroid.net/   chrome    #options=add_argument("--no-sandbox");add_argument("--headless");add_argument("--disable-dev-shm-usage")
    Maximize Browser Window
    Click Element   id=select
    SikuliLibrary.Input Text      path.png    ${CURDIR}\\img\\signature.jpeg
    Press Special Key   ENTER
    
*** Test cases  ***
Sikuli tests
    Log ToConsole   ${CURDIR}
    Login to Browser with download preferences

6.docker exec -it 2305c31c6cd7 /bin/sh ==>i connect to my container
7.export DISPLAY=127.0.0.1:10.0 ==>create an env variable named DISPLAY
8. apk add opencv-dev
apk add tesseract-ocr
8. run a test as folow robot test.robot
9. I get this erreur:

  /home/test # robot test.robot
==============================================================================
Test :: Sikuli Library Demo
==============================================================================
[ WARN ] Test get_keyword_names failed! Connecting remote server at http://127.0.0.1:55781/ failed: <Fault 0: 'Failed to invoke method get_keyword_names in class org.robotframework.remoteserver.servlet.ServerMethods: java.lang.RuntimeException'>
[ WARN ] Test get_keyword_names failed! Connecting remote server at http://127.0.0.1:55781/ failed: <Fault 0: 'Failed to invoke method get_keyword_names in class org.robotframework.remoteserver.servlet.ServerMethods: java.lang.RuntimeException'>
Sikuli tests                                                          | FAIL |
Setup failed:
Failed to get_keyword_names!

Also teardown failed:
AttributeError: 'NoneType' object has no attribute 'run_keyword'
------------------------------------------------------------------------------
Test :: Sikuli Library Demo                                           | FAIL |
1 test, 0 passed, 1 failed
==============================================================================
Output:  /home/test/output.xml
Log:     /home/test/log.html
Report:  /home/test/report.html
主要言語
Java
スター
163
フォーク
60
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

MarketSquare/robotframework-SikuliLibrary のほかの issue

MarketSquare/robotframework-SikuliLibrary の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。