Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
apertis-test-cases
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Monisha Muthukumaran
apertis-test-cases
Commits
a73eeee0
Commit
a73eeee0
authored
3 years ago
by
Sudarshan CP
Committed by
Sudarshan CP
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Update proper steps on robot framework test case
Signed-off-by:
Monisha Muthukumaran
<
Muthukumaran.Monisha@in.bosch.com
>
parent
7ac1d5e9
Branches
wip/amd64_rollback
No related tags found
No related merge requests found
Pipeline
#335467
passed
3 years ago
Stage: test
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test-cases/robotframework.yaml
+15
-27
15 additions, 27 deletions
test-cases/robotframework.yaml
with
15 additions
and
27 deletions
test-cases/robotframework.yaml
+
15
−
27
View file @
a73eeee0
...
...
@@ -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"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment