rest-testscript | 开源测试框架,可用于并发测试、性能测试,测试驱动开发等场景 可以支持自增、随机、循环、并发等标签

 by   langke93 Java Version: Current License: No License

kandi X-RAY | rest-testscript Summary

kandi X-RAY | rest-testscript Summary

rest-testscript is a Java library. rest-testscript has no bugs, it has no vulnerabilities and it has low support. However rest-testscript build file is not available. You can download it from GitHub.

base rest testscript 这是一个基于java http connection 、httpclient写的测试框架,可用于并发测试、性能测试,测试驱动开发等场景 可以支持自增、随机、循环、并发等标签. 运行用例: linux: cd /data/search/rest-testscript/bin sh run.sh hash query sh run.sh -c100 -t60 url win: cd D:\workspaces\rest-testscript\bin run.bat hash query . ###快捷并发测试 类似webbench方式进行压力测试 sh run.sh -c10000 -t60 ###编写测试用例 cd rest-testscript/bin mkdir -p ../script/jetty/jsp vi ../script/jetty/test.properties # BASE_URL=http\://localhost PORT=9009 INDEX_NAME= #Tag RANDINT= SEQINT= QUERYWD= QUERYWD.PATH= #Command SLEEP= FOREACH= CONCURRENT=. 执行结果 . 标签配置在每个脚本项目根目录下test.properties文件里,在运行时: 简单标签会把脚本里标签替换成properties文件里key对应的值 COST_TIME=costTime 用于并发时取服务端返回执行时间的JSON串. 生成器标签: SEQINT,自增整数 Usage:${SEQINT.0} 0表初始值 RANDINT,随机整数 Usage:${RANDINT.0_1000} 0_1000表随机值范围 QUERYWD,随机关键词 Usage:${QUERYWD.RAND} 也可指定随机关键词文件${QUERYWD.randkwd2.txt}或者properties文件配合QUERYWD.PATH=randkwd.txt配置关键词文件,如果没有则生成英文数字混合随机字符串 RANDINT,QUERYWD有设置随机种子数,也就是每次运行的随机顺序的值会相同. 指令标签,(配置在测试脚本第五段,如果没有第四段需要留出空行): SLEEP,等待指令,Usage:${SLEEP.10} 10表等10秒,可以是浮点数 ,可用于schema创建时等待shard分配等等 FOREACH,循环指令,Usage:${FOREACH.10} 10表循环10次 CONCURRENT,并发指令Usage:${CONCURRENT.100_200} 100表并发数,200表任务执行个数, 并发结果汇报ResponseCode,ResponseMessage. 测试脚本格式: 第一段URL,第二段METHOD,第三段请求BODY,第四段预计结果;第五段指令${FOREACH} ${SLEEP} 以空行区分每个段落,注意脚本格式:为空的段落需要留出空白段.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              rest-testscript has a low active ecosystem.
              It has 16 star(s) with 13 fork(s). There are 3 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              rest-testscript has no issues reported. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of rest-testscript is current.

            kandi-Quality Quality

              rest-testscript has 0 bugs and 0 code smells.

            kandi-Security Security

              rest-testscript has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              rest-testscript code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              rest-testscript does not have a standard license declared.
              Check the repository for any license declaration and review the terms closely.
              OutlinedDot
              Without a license, all rights are reserved, and you cannot use the library in your applications.

            kandi-Reuse Reuse

              rest-testscript releases are not available. You will need to build from source code and install.
              rest-testscript has no build file. You will be need to create the build yourself to build the component from source.
              Installation instructions are not available. Examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi has reviewed rest-testscript and discovered the below as its top functions. This is intended to give you an instant insight into rest-testscript implemented functionality, and help decide if they suit your requirements.
            • Append an object array to a string buffer .
            • Activate the default writer .
            • Get logger .
            • Determine if the specified delimiter starts with an escape character .
            • Set the target .
            • Internal error .
            • Internal warn .
            • Log a message at debug level .
            • Creates a new logger instance
            • Gets logger name .
            Get all kandi verified functions for this library.

            rest-testscript Key Features

            No Key Features are available at this moment for rest-testscript.

            rest-testscript Examples and Code Snippets

            No Code Snippets are available at this moment for rest-testscript.

            Community Discussions

            No Community Discussions are available at this moment for rest-testscript.Refer to stack overflow page for discussions.

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install rest-testscript

            You can download it from GitHub.
            You can use rest-testscript like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the rest-testscript component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/langke93/rest-testscript.git

          • CLI

            gh repo clone langke93/rest-testscript

          • sshUrl

            git@github.com:langke93/rest-testscript.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Consider Popular Java Libraries

            CS-Notes

            by CyC2018

            JavaGuide

            by Snailclimb

            LeetCodeAnimation

            by MisterBooo

            spring-boot

            by spring-projects

            Try Top Libraries by langke93

            rest-nettyserver

            by langke93Java

            app_monitor

            by langke93Java

            log4server

            by langke93Shell

            good-study

            by langke93Java

            k8smirror

            by langke93Shell