From 4528699fae3d2d7f4ce8e76d916bcc757dc47c2c Mon Sep 17 00:00:00 2001 From: carlosnizolli Date: Fri, 24 Feb 2023 17:07:38 -0300 Subject: [PATCH 1/3] =?UTF-8?q?atualizando=20vers=C3=A3o=20de=20todas=20as?= =?UTF-8?q?=20libs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 24 ++++++++++++------------ action.yml | 2 +- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6a625d7..80be088 100644 --- a/Dockerfile +++ b/Dockerfile @@ -32,7 +32,7 @@ RUN apt-get upgrade -y RUN apt-get install -y python3-pip RUN apt-get install -y curl -RUN curl -sL https://deb.nodesource.com/setup_14.x | bash - +RUN curl -sL https://deb.nodesource.com/setup_18.x | bash - RUN apt-get install -yq nodejs build-essential \ && node -v \ && npm -v \ @@ -55,28 +55,28 @@ RUN apt-get -y install chromium-browser RUN pip3 install \ --no-cache-dir \ - cryptography==3.1.1 \ + cryptography==39.0.1 \ robotframework-xvfb \ robotframework-csvlib \ - requests==2.20.1 \ - robotframework==5.0 \ - robotframework-browser==12.3.0 \ + requests==2.28.2 \ + robotframework==6.0.2 \ + robotframework-browser==16.0.0 \ robotframework-databaselibrary==1.2.4 \ - robotframework-datadriver==1.6.0 \ + robotframework-datadriver==1.7.0 \ robotframework-datetime-tz==1.0.6 \ robotframework-faker==5.0.0 \ robotframework-ftplibrary==1.9 \ - robotframework-imaplibrary2==0.4.2 \ - robotframework-pabot==2.5.2 \ - robotframework-requests==0.9.2 \ + robotframework-imaplibrary2==0.4.6 \ + robotframework-pabot==2.13.0 \ + robotframework-requests==0.9.4 \ robotframework-sshlibrary==3.8.0 \ PyYAML \ - robotframework-metrics==3.2.2 \ + robotframework-metrics==3.3.3 \ robotframework-notifications \ - pg8000==1.26.0 \ + pg8000==1.29.4 \ tesults \ robot-tesults \ - robotframework-jsonlibrary==0.3.1 \ + robotframework-jsonlibrary==0.5 \ robotframework-autorecorder \ robotframework-screencaplibrary==1.6.0 diff --git a/action.yml b/action.yml index ad0f02e..a28b4e5 100644 --- a/action.yml +++ b/action.yml @@ -2,4 +2,4 @@ name: 'Robot Framework' description: 'Run Robot Framework tests' runs: using: 'docker' - image: docker://nizolli/robotframework-ubuntu:v05 + image: docker://nizolli/robotframework-ubuntu:v06 From 2d0f8ccae3ee91a5087cefd45601ff01f661d113 Mon Sep 17 00:00:00 2001 From: carlosnizolli Date: Wed, 1 Mar 2023 10:37:39 -0300 Subject: [PATCH 2/3] corrgido metrics que deixou de ter logo personalizada --- Dockerfile | 2 -- README.md | 4 +--- action.yml | 2 +- bin/run-tests.sh | 2 +- 4 files changed, 3 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index 80be088..0b21330 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,8 +12,6 @@ ENV SCREEN_COLOUR_DEPTH 24 ENV SCREEN_HEIGHT 1080 ENV SCREEN_WIDTH 1920 -ENV METRICS_LOGO https://upload.wikimedia.org/wikipedia/commons/e/e4/Robot-framework-logo.png - ENV TZ America/Sao_Paulo RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone diff --git a/README.md b/README.md index 632382d..f93549b 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,6 @@ - Para executar é necessário informar caminho dos test_cases na variável ROBOT_TESTS_DIR - O diretório de logs pode ser alterado com a variável ROBOT_REPORTS_DIR - Por padrão o Metrics salva o dashboard com o nome metrics-log.html dentro da pasta de logs -- O Metrics utiliza uma imagem padrão do robot, para alterar a imagem presente no dashboard informar na variável METRICS_LOGO - Para utilizar o tesults basta passar o listener completo na variável ROBOT_LISTENER - Usar a variável ROBOT_OPTIONS para passar options do robot framework como --exitonfailure, --name, etc. @@ -41,14 +40,13 @@ Esta imagem está no dockerhub, para usar no actions basta adicionar os seguinte - name: Create folder for reports run: mkdir -m 777 reports - name: Execute Robot tests - uses: carlosnizolli/docker-robotframework@v02 + uses: carlosnizolli/docker-robotframework@v06.1 env: DOCKER_SHM_SIZE: 22000000 BROWSER: firefox ROBOT_TESTS_DIR: ${{ github.workspace }}/SuaPasta/SeusTestes.robot ROBOT_REPORTS_DIR: ${{ github.workspace }}/reports ROBOT_OPTIONS: "--exitonfailure" - METRICS_LOGO: http://seuendereco.com/sua_imagem.svg ROBOT_LISTENER: --listener TesultsListener:target=${{ secrets.TESULTS_TARGET }}:build-name=SeuBuildName No exemplo está sendo criada uma pasta para gravação dos logs o que permite maior controle para exportações. diff --git a/action.yml b/action.yml index a28b4e5..bc33525 100644 --- a/action.yml +++ b/action.yml @@ -2,4 +2,4 @@ name: 'Robot Framework' description: 'Run Robot Framework tests' runs: using: 'docker' - image: docker://nizolli/robotframework-ubuntu:v06 + image: docker://nizolli/robotframework-ubuntu:v06.1 diff --git a/bin/run-tests.sh b/bin/run-tests.sh index ec8b306..f9e4fcf 100644 --- a/bin/run-tests.sh +++ b/bin/run-tests.sh @@ -26,6 +26,6 @@ fi ROBOT_EXIT_CODE=$? -robotmetrics -M metrics-log.html --inputpath $ROBOT_REPORTS_DIR --output output.xml --log log.html --logo "${METRICS_LOGO}" +robotmetrics -M metrics-log.html --inputpath $ROBOT_REPORTS_DIR --output output.xml --log log.html exit $ROBOT_EXIT_CODE \ No newline at end of file From a26c4055ed8d2214b58ab93d7c0da8eb34dcfe35 Mon Sep 17 00:00:00 2001 From: carlosnizolli Date: Wed, 1 Mar 2023 11:35:58 -0300 Subject: [PATCH 3/3] =?UTF-8?q?Removido=20metrics=20que=20est=C3=A1=20em?= =?UTF-8?q?=20desuso=20e=20perdeu=20funcionalidades?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 1 - README.md | 44 +++++++++++++++++++++++--------------------- bin/run-tests.sh | 2 -- 3 files changed, 23 insertions(+), 24 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0b21330..23ab6c6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -69,7 +69,6 @@ RUN pip3 install \ robotframework-requests==0.9.4 \ robotframework-sshlibrary==3.8.0 \ PyYAML \ - robotframework-metrics==3.3.3 \ robotframework-notifications \ pg8000==1.29.4 \ tesults \ diff --git a/README.md b/README.md index f93549b..036d2cf 100644 --- a/README.md +++ b/README.md @@ -1,33 +1,35 @@ # Docker para o Robot Framework em Ubuntu ### Contém as seguintes Libs -- robotframework-csvlib -- robotframework==5.0 -- robotframework-browser==12.3.0 -- robotframework-databaselibrary==1.2.4 -- robotframework-datadriver==1.6.0 -- robotframework-datetime-tz==1.0.6 -- robotframework-faker==5.0.0 -- robotframework-ftplibrary==1.9 -- robotframework-imaplibrary2==0.4.2 -- robotframework-pabot==2.5.2 -- robotframework-requests==0.9.2 -- robotframework-sshlibrary==3.8.0 -- robotframework-metrics==3.2.2 -- robotframework-notifications -- pg8000==1.26.0 -- tesults -- robot-tesults -- robotframework-jsonlibrary==0.3.1 -- robotframework-autorecorder -- robotframework-screencaplibrary==1.6.0 + cryptography==39.0.1 + robotframework-xvfb + robotframework-csvlib + requests==2.28.2 + robotframework==6.0.2 + robotframework-browser==16.0.0 + robotframework-databaselibrary==1.2.4 + robotframework-datadriver==1.7.0 + robotframework-datetime-tz==1.0.6 + robotframework-faker==5.0.0 + robotframework-ftplibrary==1.9 + robotframework-imaplibrary2==0.4.6 + robotframework-pabot==2.13.0 + robotframework-requests==0.9.4 + robotframework-sshlibrary==3.8.0 + PyYAML + robotframework-notifications + pg8000==1.29.4 + tesults + robot-tesults + robotframework-jsonlibrary==0.5 + robotframework-autorecorder + robotframework-screencaplibrary==1.6.0 ### Orientações gerais - Utiliza o timezone São Paulo - Preparado para a utilização do firefox - Para executar é necessário informar caminho dos test_cases na variável ROBOT_TESTS_DIR - O diretório de logs pode ser alterado com a variável ROBOT_REPORTS_DIR -- Por padrão o Metrics salva o dashboard com o nome metrics-log.html dentro da pasta de logs - Para utilizar o tesults basta passar o listener completo na variável ROBOT_LISTENER - Usar a variável ROBOT_OPTIONS para passar options do robot framework como --exitonfailure, --name, etc. diff --git a/bin/run-tests.sh b/bin/run-tests.sh index f9e4fcf..4a8a50d 100644 --- a/bin/run-tests.sh +++ b/bin/run-tests.sh @@ -26,6 +26,4 @@ fi ROBOT_EXIT_CODE=$? -robotmetrics -M metrics-log.html --inputpath $ROBOT_REPORTS_DIR --output output.xml --log log.html - exit $ROBOT_EXIT_CODE \ No newline at end of file