Skip to content
Snippets Groups Projects
Commit a73eeee0 authored by Sudarshan CP's avatar Sudarshan CP Committed by Sudarshan CP
Browse files

Update proper steps on robot framework test case


Signed-off-by: default avatarMonisha Muthukumaran <Muthukumaran.Monisha@in.bosch.com>
parent 7ac1d5e9
No related tags found
No related merge requests found
Pipeline #335467 passed
......@@ -2,43 +2,40 @@ metadata:
name: robotframework
format: "Apertis Test Definition 1.0"
image-types:
fixedfunction: [ armhf, arm64, amd64 ]
hmi: [ armhf, amd64 ]
basesdk: [ amd64 ]
sdk: [ amd64 ]
image-deployment:
- APT
- OSTree
type: functional
exec-type: manual
priority: critical
maintainer: "Apertis Project"
description: "This test checks that the Robot Framework can be run in SDK, that the
framework can connect to a target via SSH, upload files, run commands
and retrieve command output."
description: "This test checks the Robot Framework functionality on SDK by running the testcases
on connected target using SSH."
pre-conditions:
- "Robotframework package needs to installed in SDK."
- "Install following packages"
- "$ sudo apt-get install python3-robotframework"
- "$ sudo apt-get install python3-robotframework-sshlibrary"
- "git clone the robotframework folder from the apertis repo."
- "$ sudo apt-get install python3-robotframeworklexer"
- "Clone the apertis-tests repository:"
- $ git clone https://gitlab.apertis.org/tests/robotframework.git
- "Connect successfully booted target(armhf, amd64, arm64) to this SDK."
- $ sudo ifconfig
- "Notedown the target IP"
expected:
- "Should be able to connect the target, transfer files to target and execute
commands on target from SDK using Robot Framework."
- "When running the script, an example.txt file will be created in the current
directory which will be transferred to the target /home/user path."
- "The file should exist in the /home/user, be readable and match the
content sent to the target."
- "The command should report no failure and its output should be something
like this at the end:"
- "Verify copied example.txt from SDK to target at /home/user"
- "Cross verify the example.txt content between SDK and target"
- "Console output will be displayed like below and generated output files path shown below."
- |
==============================================================================
Robotframework :: Robot Framework test script
==============================================================================
testcase
....Hello World!
example.txt file is created on Host current directory!
....Copied example.txt file from Host to target at /home/user!
..Integrity check: Copied content is same on Target
testcase | PASS |
------------------------------------------------------------------------------
Robotframework :: Robot Framework test script | PASS |
......@@ -48,16 +45,7 @@ metadata:
Log: /home/user/log.html
Report: /home/user/report.html
install:
git-repos:
- url: https://gitlab.apertis.org/tests/robotframework.git
branch: 'apertis/v2023dev0'
run:
steps:
- "$ cd robotframework"
- "Enter the IP address of target"
- "$ robot --variable target:<ip address of target> robotframework.robot"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment