Cloud Computing 6 min read

Introducing TcloudServer: A Cloud Testing Platform with Jenkins Pipeline Configuration

The article introduces the TcloudServer cloud testing platform, outlines its key features such as cloud devices, workflow management, and dashboards, and provides detailed configuration instructions including Python settings, Jenkins pipeline setup, and parameter definitions for automated mobile monkey testing.

FunTester
FunTester
FunTester
Introducing TcloudServer: A Cloud Testing Platform with Jenkins Pipeline Configuration

TcloudServer (Test Cloud) is a cloud‑based testing platform that offers cloud device testing, workflow management, dashboards, and various management tools such as iteration, case, defect, requirement, and role management, as well as integration with KONG and Grafana.

The front‑end project is named Tcloud while the back‑end project is TcloudServer . The demo environment is currently offline due to funding constraints, but the repository and previous introduction article provide further details.

Configuration of the platform is performed via a local_config.py file. Key settings include Jenkins URL and authentication, job names, OSS report directory, and various Tcloud API parameters. The full snippet is shown below:

# Jenkins url
CI_AUTO_MAN_JENKINS_URL = 'JenkinsURL 填写对应的本地路径'
# Jenkins Auth
CI_AUTO_MAN_JENKINS_AUTH = {
    "username": "用户名",
    "password": "密码"
}
# Jenkins job name
CI_AUTO_MAN_JENKINS_MONKEY_JOB = 'monkey_autotest'
# OSS report dir
CI_REPORT_FILE_ADRESS = ""
# JOBS url
CI_JOB_ADDRESS = f"{CI_AUTO_MAN_JENKINS_URL}/job"

Jenkins pipeline configuration requires creating a new job named monkey_autotest of type Pipeline, selecting “Parameterized Build Process”, and setting the node label to stf to enable the STF cloud‑device integration.

The job parameters are defined in a table, covering items such as PackageName (Android package name), DeviceName (device serial), RunTime (duration in minutes), RunMode (monkey mode options like mix or dfs ), and various URLs and flags required by Tcloud.

id

type

remark

PackageName

String

运行的 android 包名

DefaultAppActivity

String

app 默认启动的 Activity

DeviceName

String

运行的设备的 device id (序列号)

RunTime

String

运行时间 单位分钟

AppDownloadUrl

String

app 下载路径

PATH

String

PATH

RunMode

String

Monkey运行模式。mix: 类monkey模式。70%控件解析随机点击,其余30%按原Monkey事件概率分布。支持android版本>=5 dfs: DFS深度遍历算法。支持android版本>=6

MonkeyId

String

tcloud 相关参数,定位 build id

TaskId

String

tcloud 相关参数,定位 当前设备测试的 id

TcloudUrl

String

tcloud 相关参数,api根 url

SystemDevice

Bool

是否是 系统设备,未使用

InstallAppRequired

String

是否需要安装 App, 1需要,2不需要

LoginRequired

Bool

是否需要登录,未使用

LoginUsername

String

登录用的用户名, 未使用

LoginPassword

String

登录用的密码,未使用

BuildBelong

String

未使用

Additional node configurations are mentioned but not detailed; readers are directed to the official repository documentation for further information.

The article concludes with references to the author’s public account “FunTester” and a list of related articles covering API testing, performance testing, HTTP fundamentals, programming mindset, and more.

pythonci/cdautomationmobile testingcloud testingJenkins
FunTester
Written by

FunTester

10k followers, 1k articles | completely useless

0 followers
Reader feedback

How this landed with the community

login Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.