发布新日志

  • 浅谈性能测试

    2008-04-07 13:31:15

    1.什么是软件性能?

    从软件系统而言,软件性能包括资源占用情况,可靠性,安全性,稳定性等

    从不同的角度来理解

    从用户的角度理解软件性能主要是客户发出的请求响应时间的长短.

    从管理员的角度理解软件的性能指:

    系统响应的时间,系统运行时资源的利用率,如cpu利用率,内存使用情况等,系统是否可以实现扩展,系统允许访问的最大用户,系统性能可能瓶颈在那里,系统是否支持长时间的业务访问.

    从研发人员的角度理解软件的性能指:用户关心的响应时间,管理员关心的系统可扩展性,架构设计是否合理,数据库设计是否合理,代码是否存在不合理的地方,系统中是否有不合理的内存使用情况

    性能测试包括

    1.负载测试

    在特定条件下,验证系统的能力状况

    2.压力测试

    在什么样的条件下系统的性能会变得不可接受

    3.强度测试

    在系统稳定运行情况下能够支持的最大用户数和日常用户数,持续执行一段时间业务,通过综合分析交易执行指标和资源监控指标来确定系统处理最大工作量强度性能的过程.

    性能指标:

    1.响应时间:指客户发出请求到响应这个过程所用的时间

    2.吞吐量:单位时间内,能够处理的客户请求的数量

    3.并发用户数:在某一给定时间内,某一特定点上进行操作的用户数

    4.资源利用率:指系统资源的使用程度,如cpu利用率,内存利用率,磁盘利用率,网络带宽利用率等.






     

     

     

  • 浅谈白盒测试

    2008-04-01 21:29:11

                                  逻辑覆盖法

    以下面代码为例谈逻辑覆盖的方法

    public static void main(String args[])

    {

       int x=0,y=0;

       if(x>0&&y<10)

       {

          x=x+1;
       }

       else

       {

          y=y-1;

       }

    }   

    1.语句覆盖

    设计足够多的Test case使程序中的每条可执行语句都能够被至少执行一次.

    测试用例设计

      测试数据        执行结果

    1.x=1,y=9         x=x+1

    2.x=-1,y=9        y=y-1

    虽然每个可执行语句可以得到执行,但语句覆盖还是不能发现程序中的一些错误.如:第二个测试用例,如将语句中的"&&"错写成"||"y=y-1还是可以得到执行

    2.判定覆盖

    设计足够多的用例,使程序中的每个判定分支(取True,False)都得以执行.

         测试数据        执行结果

    1. x=1,y=9           True分支(既if分支)

    2. x=-1,y=9          False分支(既else分支)

    3.条件覆盖

    设计测试用例,使程序中的每个条件的取True\False两种结果都至少执行一次.

         测试数据         执行结果

     对于判定条件(x>0&&y<10)

    1.x>0 取真值T1,假值F1

    2.y<10  取真值T2,假值F2

    设计测试用例使T1,F1,T2,F2都被覆盖

        测试数据       执行结果

    1. x=1,y=9        T1,T2

    2. x=-1,y=11      T2,F2

     

     

  • solution demo portal

    2008-03-20 21:19:02

                                  iBooth Front page

    iBooth descrīption max 4 行 in iportal page.

    当指向iBooth name时弹出一白色矩形框.

    每12 tag为一页.如果event有 public webinar 将会出现upcoming event

    可以通过单击“My Portfolio”来查相应的event.如果打开的iBooth is shared iBooth,display index

    display company.

    不输入任何内容,直接单击"search"button 将进入search result页面,如有content列出所有的content,如果没有将显示提示信息.

    单击"advanced search"button 进入高级搜索页面,里面有两个选项1.this iBooth,2.all iBooth,如果在搜索框中输入搜索内容,并选择all iBooth 进入iportal page的搜索页面,些时,注意在advaced searchd页面输入的内容,将会显示在些页面中,并且单击"reset"Button,此内容不会消失.

    注意在显示iBooth 时,通过"Add Favorite"将iBooth url保存,然后将iBooth设置成disable时,在前台通过url打开时,将出现提示错误,此iBooth不存在。

  • iBooth

    2008-03-18 13:12:11

                                   iBooth  setting

    iBooth category下拉列表里列出了所有Action is enable的类别

    iBooth Type 1.Training iBooth 2.Standard iBooth

    Ti 需要用地址来访问,Si不需要

    Access privilege 1.public 2.restrict 3.Internal only

    iBooth is public(public user、customer、iP、iB、iC都能访问)但只有hp账户能够进行request.

    restrict:public user 不能够访问,customer、ip、iB、ic都能访问

    Internal only:hp account能够看到iBooth

    Require iBooth Owner 's Approval for Live Seminar:有两个选项yes、no,如果选择yes the iBooth owner should be asked to approval it in requesting event 如果选择no the iBooth owner should not be asked to approval it in requesting event

    Require iAccount Manager's Approval on Demo Request:同样有两个选项yes、no,如果选择yes the iAccount Manager's should be asked to approval it in requesting,如果选择no the iAccount Manager's should not be asked to approval it in requesting.

    Can partner sales request events:有两个选项yes、no 此项只有Dedicated iBooth partner company时才显示,如果选择yes,允许partner company下的用户request event,如果选择no,则不允许.

    如果选择了check box,仅SystemAdmin、iP、iB、iC can open up iBooth by url or in iportal.

    update iBooth

    下面几点不能更改

    1.from dedicated internal only iBooth to shared iBooth

    2.在有content(not global content)的情况下,不能update company.

    3.update to staging iBooth which has outstanding event.

    delete iBooth

    iBooth status is disable、setup时可以被删除

    disable iBooth

    iBooth which have outstanding live event not be enable to disable.

     

     

     

     

     

     

     

     

     

     

     

  • iBooth

    2008-03-18 11:30:48

                         iBooth creation

    Dedicated iBooth 与shared iBooth的区别?

    DB display all company name 没有被shared iBooth占用,shared iBooth 列出了所有company name没有被Dedicate iBooth和其它shared iBooth所占用,shared iBooth可以多选.

    在展台shared iBooth的display index中display "company"组件.

    iBooth name max 37 character

    iBooth owner

    if selected dedicated iBooth and company name is "Hp",Select from the list display all hp account.否则,display all hp account and company partner account.

    if selected shared iBooth,Select from the list display all hp account.

    iBooth Content Mgr、iAccount Mgr、iResource Mgr same as iBooth owner

    Notes max 1000 character

     

     

  • 测试SDP(User Account)

    2008-03-16 21:13:41

    三种类型的用户Hp Employee、Partner、Customer之间的区别

    1.权限不同

    2.Email不同(hp 账户的Email格式为xxx@hp.com、partner、customer账户的Email格式为xxx@xxx.xxx)

    3.company name不同(在添加 new user时hp、partner 出现Company下拉列表选择Company而customer类型的用户不出现下拉列表,company name可以随意填写)

    Add new user

    1.text的max length is 32 character

    2.在增加用户时,partner、customer账户的Email可以是xxx@hp.com这种格式的

    3.如果添加的用户名已存在,相同的用户名还可以再被添加

    4.如果用已存在的Email添加new user,hp、employee账户不能添加成功,而partner账户可以添加成功

    5.Teleconference info text、Misc.info text max length is 1000 character

    Delete new user

    不能删除的账户

    user type is iBooth owner、iBooth Content Mgr、iAccount Mgr、iResource Mgr、iPortal owner、Hp Account Mgr、user is live demo Requestor、Prenstener、content creator、content contact person、account is requestor event status is submitted、review、active、past、finished、pending、live、rejected、deleted

     

     

  • 单元测试

    2008-02-28 09:54:10

    1.单元测试的概念

    单元测试又称模块测试,由开发人员编写的一小段代码,用来验证被测代码的一个很小的、很明确的功能是否实现。

    2.为什么要进行单元测试?

    开发人员在编写代码时,一定会反复调试程序,使程序通过编译,但程序通过编译只能说明语法正确,不能说明语义也正确,所以这个时候就要进行单元测试

    3.单元测试的优点

    3.1单元测试是一种验证行为

    3.2单元测试是一种设计行为

    3.3单元测试是一种编写文档的行为

    3.4单元测试具有回归性

    4.单元测试的内容

    单元测试的最小逻辑单位----函数,单元测试的依据是详细设计描述

    5.何时进行单元测试?

    单元测试在编码阶段进行,在源程序代码编制完成,经过验证无语法错时,这个时候开始单元测试test case design.要利用软件设计文档,设计可以验证程序的功能、找出程序错误的多个test case.

我的栏目

数据统计

  • 访问量: 3425
  • 日志数: 11
  • 建立时间: 2008-02-27
  • 更新时间: 2008-04-14

RSS订阅

Open Toolbar