QTP: QTP basics

First, the automated test design

Test Category: manual testing, automated testing (performance testing, automated functional test)

自动化测试用例设计方法:
	当前的测试用例前置条件和数据要写清楚
	每一个步骤都要设计衔接好,否则,脚本要报异常
	每一个步骤要描述、验证内容、预期结果需要描述清楚
	用例之间不要有关联性,自动化测试开发同样是软件开发工程,脚本编同样提倡高内聚低耦合的理念
	不是每一个步骤都需要验证点,需要结合实际项目的特点
	不需要在多个地方重复相同的验证
	尽量做到测试数据状态前后一致,保证可重用
	设计自动化测试用例时,不能随意对一个用例的验证点进行增减,对用例中不能实现的验证,要进行标记,或者将该用例进行拆分,因为手工用例+自动化用例=1

Second, the scope of automated testing & automated test applications

Smoke testing, regression testing, on-line testing, acceptance testing, full-function test

Third, automated testing process --- the most important! ! !

Feasibility Analysis Requirements Analysis → → Test Plan Test Automated Test Design → → → test script development unmanned test report → → submit test script maintenance phase

Simplified to: Test Plan → → test → test program development and design automation scripts, and debug scripts perform automated testing → → submit test reports

Four, QTP works

When recording: record mouse and keyboard operations, and the property of the recording operation target object library to
a playback time: properties of the object based on the object library records, identification target, the operation target

Fifth, the advantages and disadvantages of automated testing

自动化测试优势
	对程序的回归测试更方便、可靠。 
	可以运行更、多更繁琐的测试,且快速、高效。 
	可以执行一些手工测试困难或不可能进行的测试 
	能更好地利用资源,使资源的使用更有价值。 
	测试具有一致性和可重复性的特点。 
	自动化测试脚本完全具有复用性。 
	增加软件信任度。 
	多环境下测试
自动化测试劣势
	永远不可能完全取代手工测试
	无法完全保证测试的正确性
	手工测试比自动测试发现的缺陷更多
	对测试质量的依赖性极大
	测试自动化可能会制约软件开发
	自动化测试工具本身并无想像力
	成本投入过高,风险大
	对测试人员技术要求较高,对测试工具也有一定的要求  

Six, QTP and other automated testing tools

Automation Tools toll Language
QTP (UFT) toll Embedded Language vbs
Selenium Open source Web-based test
winrunner Open source Embedded Language TSL (difficult to learn)

 

 

 

Published 349 original articles · won praise 161 · views 190 000 +

Guess you like

Origin blog.csdn.net/qq_42192693/article/details/103675086