Automation UI testing with VNC
来源:互联网 发布:网络造字 编辑:程序博客网 时间:2024/05/22 02:20
If we’d like to test with UI program that needs a display available, this is handy to run an VNC session during the testing.
Getting Started with VNC
1 Setup a vnc server
vncserver :1
If you haven’t run a VNC server before you will be prompted for a password, which you will need to use when connecting to this server. All your servers will use the same password, and you can change it at a later date using
vncpasswd
2 Teardown a vnc server
vncserver -kill :1
3 Create a function for reuse
setup_vnc(){ #FIX ERROR "vncserver: The HOME environment variable is not set." [ -z "$HOME" ] && export HOME=/home/xxxtest # default starting with :10 VNC_DISPLAY=10 # find a vnc display number hasn't been used. while ! vncserver :$VNC_DISPLAY do ((VNC_DISPLAY++)) done export VNC_DISPLAY export DISPLAY=:$VNC_DISPLAY}teardown_vnc(){ vncserver -kill :$VNC_DISPLAY}
to enable the vnc session is released, there need to trap the exit signal
trap teardown_vnc INT TERM EXITsetup_vnc#doing some process
Reference
- Virtual Network Computing
0 0
- Automation UI testing with VNC
- Introduction to iOS Testing With UI Automation(初学者,实例)
- MonekyRunner_Android UI Automation with Python
- Automation Testing
- Lightweight UI Test Automation with .NET
- Web UI Automation with Windows PowerShell
- Android UI Testing with uiautomatorviewer and uiautomator
- Automation Testing中的变量
- Business logic automation testing
- Mobile Automation testing Tools
- UI Automation
- Automation testing framework for RFT execution with STAF+STAX . [Session-1]
- Automating User Interface Testing with Instrument-利用Automation进行自动化测试
- The Automation Testing System 2: System Testing
- Mobile Automation Testing URL Notes
- Automation testing experience -- from 梅子
- Robotium_Automated UI testing for Android applications with Robotium
- UI Automation Introduction.
- iOS开发实践之网络检测Reachability
- 互联网行业职位介绍——PM,RD,FE,UE,UI,QA,OP,DBA,BRD,MRD, PRD,FSD等
- jQuery入门及各种选择器讲解
- JavaScript > module模式
- 连载《一个程序猿的生命周期》- 44.感谢,我从事了IT相关的工作 --- 《生存》篇结束,全集下载
- Automation UI testing with VNC
- HTML/CSS——插入样式表的三种方法
- C#导出到Excel——无法嵌入互操作类型“Microsoft.Office.Interop.Excel.ApplicationClass”。请改用适用的接口。
- AJAX 跨域请求 - JSONP获取JSON数据
- 学习Python语言---文件操作
- java Puzzles 之关于金钱计算那些事
- Mac OS10.11系统下 安装cocoapods
- Junit学习笔记之-- 测试套件
- ActionMode,actionModeBackground无效