51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 33586|回复: 21
打印 上一主题 下一主题

[求助] 计算器的测试用例

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2008-3-20 11:21:39 | 只看该作者 回帖奖励 |正序浏览 |阅读模式
有那位大虾计算器的测试用例怎么写啊!给指点一下,谢谢!
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏1
回复

使用道具 举报

  • TA的每日心情
    郁闷
    2015-7-15 17:35
  • 签到天数: 3 天

    连续签到: 2 天

    [LV.2]测试排长

    23#
    发表于 2015-3-1 09:06:38
    计算器的测试案例
    Basic Operational Tests

    Write the test cases based on the following functions and scenarios.

    Check the calculator if it starts by on button. If it is software based calculator then check if it starts via specific means like from searching for calculator in search bar and then executing application. Or by accessing menu item in the Windows.
    Check if the calculator window maximizes to certain window size.
    Check the if the calculator closes when the close button is pressed or if the exit menu is clicked from file > exit option.
    Check if the help document is accessed from Help > Documentation.
    Check if the calculator allows copy and paste functionality.
    Check if the calculator has any specific preferences.
    Check if all the numbers are working ( 0 to 9)
    Check if the arithmetic keys ( +, -, *, %, /) are working.
    Check if the clear key is working.
    Check if the brackets keys are working.
    Check if the sum or equal key is working.
    Check if the square and square root key is working.

    Functionality Test Cases

    Check the addition of two integer numbers.
    Check the addition of two negative numbers.
    Check the addition of one positive and one negative number.
    Check the subtraction of two integer numbers.
    Check the subtraction of two negative numbers.
    Check the subtraction of one negative and one positive number.
    Check the multiplication of two integer numbers.
    Check the multiplication of two negative numbers.
    Check the multiplication of one negative and one positive number.
    Check the division of two integer numbers.
    Check the division of two negative numbers.
    Check the division of one positive number and one integer number.
    Check the division of a number by zero.
    Check the division of a number by negative number.
    Check the division of zero by any number.
    Check if the functionality using BODMAS/BIDMAS works as expected.

    Advanced Tests on Scientific Calculator
    You can add few more tests in the scientific calculator.

    Check if the sin, cos, tan and cos is operational using the keys.
    Check if the x-1, x!,|x|,x^y and f(x) is operational and works as expected.
    Check if the log key is operational and works as expected.
    Check if the natural logarithm key i operational and works as expected.
    Check if the factorial key is working as expected.
    Check if the real and imaginary component keys are working as expected.
    Check if the complex conjugate keys are working as expected.

    Conversion Function Tests

    Some of the advanced scientific calculator has the converter option. It does the conversion of angle, length, weight, area, volume, duration, currency, temperature. Make sure you write the test cases for the same.

    Financial Calculator Tests

    The additional keys for the financial calculator will be as shown in the image. Some calculator has the mode for enabling these keys.
    支持 反对

    该用户从未签到

    22#
    发表于 2012-8-19 14:24:30 | 只看该作者
    很好;最近刚好在学;借鉴了
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    21#
    发表于 2012-6-17 20:01:04 | 只看该作者
    学习。。。。。。
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    20#
    发表于 2012-6-14 12:01:04 | 只看该作者
    3# 的测试用例考虑的很全面
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    19#
    发表于 2012-5-13 21:32:21 | 只看该作者
    我觉得挺好的,大家的看法呢
    回复 支持 反对

    使用道具 举报

  • TA的每日心情
    慵懒
    2023-7-19 14:54
  • 签到天数: 266 天

    连续签到: 1 天

    [LV.8]测试军长

    18#
    发表于 2012-5-12 23:21:41 | 只看该作者
    学习了,谢谢
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    17#
    发表于 2010-5-19 11:49:58 | 只看该作者
    为什么计算那么复杂的??
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    16#
    发表于 2010-5-18 16:31:40 | 只看该作者
    3楼的感觉蛮全面,只是稍欠条理性
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    15#
    发表于 2010-5-10 11:23:05 | 只看该作者
    太强悍了,我也测过计算器,只是简单的加减乘除,汗颜~
    回复 支持 反对

    使用道具 举报

  • TA的每日心情
    慵懒
    2024-9-12 08:33
  • 签到天数: 543 天

    连续签到: 1 天

    [LV.9]测试副司令

    14#
    发表于 2010-5-10 10:30:49 | 只看该作者
    站长的回答真具体,学习啦
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    13#
    发表于 2010-5-7 17:10:35 | 只看该作者
    nb
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    12#
    发表于 2010-3-2 19:27:30 | 只看该作者
    原来是怎么回事
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    11#
    发表于 2010-3-2 14:16:52 | 只看该作者
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    10#
    发表于 2009-3-13 18:07:25 | 只看该作者
    不错,最近正好要用这个,3Q~
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    9#
    发表于 2008-11-12 17:14:18 | 只看该作者
    文法测试用例指的啥啊?
    一般的计算器该怎么测啊,例如Windows自带的calc
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    8#
    发表于 2008-11-5 11:10:12 | 只看该作者
    真不错
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    7#
    发表于 2008-11-3 15:45:21 | 只看该作者
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    6#
    发表于 2008-11-3 11:37:08 | 只看该作者
    我顶!!!
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    5#
    发表于 2008-3-21 15:45:15 | 只看该作者
    学了,我正好有用,呵呵~~~~~~~~~~~~
    回复 支持 反对

    使用道具 举报

    本版积分规则

    关闭

    站长推荐上一条 /1 下一条

    小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

    GMT+8, 2024-9-22 23:30 , Processed in 0.086157 second(s), 25 queries .

    Powered by Discuz! X3.2

    © 2001-2024 Comsenz Inc.

    快速回复 返回顶部 返回列表