2016年3月24日 星期四

RobotFramework Installation Guide for Oracle Linux 7.1


RobotFramework Installation Guide for Oracle Linux 7.1

Check Host File
vi /etc/hosts
10.179.86.8     eras-st-robot  eras-st-robot.eth0

Set Host Name
hostnamectl set-hostname eras-st-robot02

Change SSHD config
vi /etc/ssh/sshd_config
  • X11Forwarding yes
  • X11UseLocalhost no
service sshd restart

Check $DISPLAY after reboot
echo $DISPLAY
10.179.86.8:10.0

Install Xming
Install Xming X11 display server (https://sourceforge.net/projects/xming/) on your desktop PC and launch it

Enable X11 forward for PuTTY
Connection > SSH > X11 > Enable X11 forwarding

Add DNS Server
vi /etc/resolv.conf
options rotate attempts:2 timeout:2
search assets.thomsonreuters.com
nameserver 10.238.127.253
nameserver 10.238.127.254

Add Proxy Server
vi ~/.bash_profile
http_proxy=http://10.23.31.130:8080
export http_proxy
https_proxy=http://10.23.31.130:8080
export https_proxy

Setup Yum Proxy
vi /etc/yum.conf
proxy=http://10.23.31.130:8080

Remove SPT Repo and Install the YCK repository
rm /etc/yum.repos.d/SPT.repo
scp ricky.leung@10.32.29.215:/data/tools/oel7.1_yum.repos.d/ol7-u1-x64-1_0-patch-current-YCK.repo /etc/yum.repos.d/ol7-u1-x64-1_0-patch-current-YCK.repo

NTP Service
yum install ntp
vi /etc/ntp.conf
server 10.32.29.101 iburst
systemctl restart ntpd
ntpq -p
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
*10.32.29.101    .PPS.            1 u    2   64    1    1.259   -0.179   0.000


Python, Paramiko and RobotFramework
yum install python-devel python-setuptools glibc*
wget https://bootstrap.pypa.io/get-pip.py
python get-pip.py
sudo pip --proxy http://10.23.31.130:8080 install paramiko robotframework robotframework-ride robotframework-sshlibrary

Install xauth and xclock
yum install xauth xclock

Install EPEL Repo and wxPython, paramiko and sshpass
rpm -ivh epel-release-7-5.noarch.rpm
yum install wxPython python-paramiko sshpass

Generate public key to TG and InputHandler
ssh-keygen
ssh-copy-id -i ~/.ssh/id_rsa.pub reutadmin@10.179.86.7
ssh-copy-id -i ~/.ssh/id_rsa.pub 10.179.86.8

Run the test

Copy SystemTests possibly from GIT to to ~ and then use ride.py to open SystemTests/SystemTestInputHandler/SystemTestInputHandler.txt

沒有留言:

張貼留言

2023 Promox on Morefine N6000 16GB 512GB

2023 Promox on Morefine N6000 16GB 512GB Software Etcher 100MB (not but can be rufus-4.3.exe 1.4MB) Proxmox VE 7.4 ISO Installer (1st ISO re...