robotframework manual

critical

Image Types:
basesdk-amd64 / sdk-amd64
Image Deployment:
APT
Type:
functional

Description

This test checks the Robot Framework functionality on SDK by running the testcases on connected target using SSH.


Pre Conditions

  1. Install following packages
  2. sudo apt update
  3. sudo apt upgrade
  4. $ sudo apt-get install python3-robotframework
    $ sudo apt-get install python3-robotframework-sshlibrary
    $ sudo apt-get install python3-robotframework-seriallibrary
    $ sudo apt-get install python3-robotframeworklexer
  5. Clone the apertis-tests repository:
  6. $ git clone https://gitlab.apertis.org/tests/robotframework.git
  7. Connect successfully booted target(armhf, amd64, arm64) to this SDK.
  8. $ sudo ifconfig
  9. Notedown the target IP

Execution Steps

    $ cd robotframework
    $ robot --variable target:<ip address of target> robotframework.robot

Expected

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-Basic Test :: This Robot Framework script demonstrates vario... ============================================================================== Test Robot Report :: Test capturing system path, printing it, and ... . Printing the Path of the System . ----------------------/home/user/boost -------------------- Test Robot Report :: Test capturing system path, printing it, and ... | PASS | ------------------------------------------------------------------------------ Robotframework SCP test :: Test SCP operations - creating a file, ... . 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 the same on Target Robotframework SCP test :: Test SCP operations - creating a file, ... | PASS | ------------------------------------------------------------------------------ Robotframework serial test :: Test serial communication using Seri... | PASS | ------------------------------------------------------------------------------ Test SSH Connection :: Test establishing an SSH connection, execut... ....... docker0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500 inet 172.17.0.1 netmask 255.255.0.0 broadcast 172.17.255.255 ether 02:42:cf:cf:fe:4a txqueuelen 0 (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 Test SSH Connection :: Test establishing an SSH connection, execut... .... Test SSH Connection :: Test establishing an SSH connection, execut... | PASS | ------------------------------------------------------------------------------ Robotframework-Basic Test :: This Robot Framework script demonstra... | PASS | 4 tests, 4 passed, 0 failed ============================================================================== Output: /home/user/boost/output.xml Log: /home/user/boost/log.html Report: /home/user/boost/report.html