阅读下列说明,回答问题1至问题3,将解答填入的对应栏内。[说明]场景法是黑盒测试中重要的测试用例设计方法。目前多数软件系统都是用事件触发来控制业务流程,事件触发时的情景便形成了场景,场景的不同触发顺序构成用例。场景法通过场景描述业务流程(包括基本流(基本流程)和备选流(分支流程)),设计用例遍历软件系统功能,验证其正确性。下面是对网上银行支付交易系统的基本流和备选流的描述:基本流A:
备选流:
注:假定输入的银行卡号是正确的:不考虑备选流内循环情况。10、 [问题1](6分)使用场景法设计测试用例,指出所涉及到的基本流和备选流。基本流用字母A表示,备选流用题干中描述对应编号表示。11、 [问题2](8分)请针对问题1设计的测试用例,依次将银行卡号、初次输入密码、最终输入密码、卡内余额、银行卡可支付额度等信息填入下述测试用例表中。表中行代表各个测试甩例,列代表测试用例的输入值,用V表示有效数据元素,I表示无效数据元素,n/a表示不适用,例如C01表示“成功支付”用例。测试用例表
12、 [问题3](3分)在上述系统中,假设银行卡号只能输入0~9的数字,请参考下表,给出用边界值法检查卡号字符合法性的关键测试数据(字符或ASCⅡ值)。
正确答案及解析
正确答案
解析
10、根据题目中已经确定的基本流与备选流,可以设计场景,每个场景覆盖一种在该案例中事件的不同触发/顷序与处理结果形成的事件流,最后得出所有的测试用例。下面就是所有的测试用例和用例中所涉及的基本流与备选流。用例1: A用例2: A、B用例3: A、C用例4: A、C、D用例5: A、B、C用例6: A、B、C、D以上顺序可以互换。 11、根据“问题一”得到的测试用例,按照问题二的提示和要求,可以得出下面的场景分析表。
每行顺序可以互换。 12、根据边界值分析法设计测试用例的原则之一:“如果输入条件规定了值的范围,则应取刚达到这个范围的边界的值,以及刚刚超越这个范围边界的值作为测试输入数据”的原则,答案如下:0 (或48)和9(或57)/ (或47):(或58)
你可能感兴趣的试题
Advancements in ( )have contributed to the growth of the automotive industry through the creation and evolution of self-driving vehicles.
-
- A.Artificial Intelligence
- B.Cloud Computing
- C.Internet of Things
- D.Big Data
- 查看答案
In project human resource management , ( )is not a source of power for the project manager.
-
- A.referent power
- B.expert power
- C.reward power
- D.audit power
- 查看答案
At the project establishment stage , the feasibility study mainly includes techinical feasibility analysis , ( ), operation environment feasibility analysis and other aspects of feasibility analysis.
-
- A.detail feasibility analysis
- B.opportunity analysis
- C.economic feasibility analysis
- D.risk analysis
- 查看答案
( )is a grid that shows the project resources assigned to each work package.
-
- A.Stakeholder engagement assessment matrix
- B.Requirements traceability matrix
- C.Probability and impact matrix
- D.Responsibility assignment matrix
- 查看答案
Xinhua News Agency reported in January 2022,Chian will further promote the developmet of a digital economy during the 14th Five-Year Plan eriod(2021-2025). The plan also emphasized industrial ( )transformation.
-
- A.digital
- B.networking
- C.intelligentize
- D.informatization
- 查看答案