摘要
针对目前Web应用"捕捉/回放"式测试脚本复用率不高的问题,根据Web应用的特性给出了一种基于数据驱动的Web测试框架,并设计了基于XML语言的自动化测试脚本。该测试脚本描述了Web应用行为的多请求/响应的迁移模型,并清晰地定义了外部测试数据避免了数据"硬编码"的缺陷,可对Web应用不同方面(例如功能、性能)上进行测试。开发了一个测试执行的原型工具,它以测试脚本为输入并自动化执行测试用例并生成测试结果。
Aimed at the problem of low reusability in the context of web application test script based on "capture/replay". A data-driven testing framework and an automated script using XML are proposed. The transport model of requests/responses for web application is described and the external test data is defined to avoid the defect of data hardcoded. This test method is used in different test such as function test, performance test, etc. A prototype tool based on the proposed approach is developed, which accepts test script in XML syntax as input, executes the test cases and validates the test results.
出处
《计算机工程与设计》
CSCD
北大核心
2010年第1期175-178,共4页
Computer Engineering and Design
基金
国家自然科学基金项目(60673115)