开源测试工具 这样的接口测试工具在 Jenkins 中使用够简单吗

LinuxSuRen for Jenkins 中文社区 · 2023年08月24日 · 1907 次阅读

很多人会基于 Jenkins 做接口持续测试,下面是我给出的一个方案,大家看看是否足够简单呢?

pipeline {
    agent any

    stages() {
        stage('test') {
            steps {
                sh '''
                curl http://localhost:9090/get -o atest
                chmod u+x atest

                ./atest run -p http://localhost:9090/server.Runner/ConvertTestSuite?suite=api-testing
                '''
            }
        }
    }
}

官方文档:https://linuxsuren.github.io/api-testing/

如果觉得我的文章对您有用,请随意打赏。您的支持将鼓励我继续创作!
暂无回复。
需要 登录 后方可回复, 如果你还没有账号请点击这里 注册