发布新日志

  • Testing method

    2007-05-01 12:46:32

    Testing method

    The software testing method have much kinds of classifications.For instance:

    On the basis of difference of testing information, It may be divided into Black-Box Testing and White-Box Testing. Black-Box Testing also is called Specification-based Testing. So-called Black-Box Testing is a testing method in which testing target is regarded as a black box. The concrete realization of its inside need not be consider, merely consider its entire property. The common form have function testing, capacity testing, load testing, recovery testing, stress testing, etc. Contrary to black-box testing, software is viewed as a white-box, or glass-box in white-box testing, as the structure and flow of the software under test are visible to the tester. Testing plans are made according to the detail of the software implementation, such as programming language, logic, and styles.Test cases are derived from the program structure.
    In accordance with whether running the software tested, It may be divided into Static Testing and Dynamic Testing. Static Testing dose not run the software system, but is a testing technique which is adoping else measure and technique to examination the software tested. For example:Code Walkthrough, Documentation Checkup, program analysis, etc. Dynamic Testing need to run the software system in accordance with the data and process designed before.
    The testing method still may be divided into Automation Testing and Artifical Testing. Artifical Testing is the testing activity completeing through man. Automation Testing is the testing activity completeing through computer.

  • 让虚拟机内os一起上网

    2007-04-27 22:08:09

    物理主机os:windows xp sp2
    虚拟机内os:windows 2000 advanced server


    想让win 2000与win xp一起上网,一起来设置吧!!
    1.首先,我们将虚拟机的网络连接设置为NAT方式。
      这一步可以在安装os系统时进行选择,也可以在随时在虚拟机中进行修改:(菜单VM-->setting-->Ethernet ,然后在右边network connection中选择NAT方式。)
    2.在物理主机的os上,安装过VMware Workstation软件后,会在本地连接中,多了两个虚拟网卡,一个是 VMware Network Adapter for VMnet1 .另一个是 VMware Network Adapter for VMnet8 。如下图所示:

    设置你用于上外网的本地连接,我用的本地连接2。
    打开其属性对话框,在高级选项卡中,将“允许其他网络用户通过此计算机的Internet连接来连接“打勾,并选取vmware8

    此时,你查看VMware8的IP地址自动变为了192.168.0.1。
    此时的VMware相当于一个路由器的作用,虚拟机内os通过它来访问外网。

    3.设置虚拟机内os的网络连接。
    安装好os后,你可以在网络连接里发现一个“本地连接”。
    打开其属性,将其IP地址设为192.168.0.*(比如192.168.0.2),网关为自动填写,子网掩码填写物理主机vmware8的IP地址:192.168.0.1。
    首选DNS服务器选取物理主机中os上外网的本地连接的DNS地址。(可以在运行中输入cmd ,然后用ipconfig/all进行查看)

    4,接下来就只需要把防火墙等关闭,你的虚拟机就可以与物理主机一起上网啦。
    (用你的虚拟机os拼命地下载吧,不怕中毒啦!!!!!!!)

  • linux 下安装bugzilla

    2007-04-26 16:23:57

    安装bugzilla,要先获得一些软件的支持,可以通过网上下载获得。
    一:下载相关软件:
    1。ActivePerl-5.6.1(最好不要用最新版本,否则在安装相应模块时会有些小问题,这个版本我试过,可以用,)下载地址:http://www.activestate.com/store/download.aspx?prdGUID=81fbce82-6bd5-49bc-a915-08d58c2648ca,有三种格式,我选择的是.tar.gz。
    2。mysql : (rpm格式)下载地址:www.rpmfind.net或者www.mysql.org
       下载清单:MySQL-client-4.0.21-0.i386.rpm  MySQL-devel-4.0.21-0.i386.rpm  MySQL-server-   4.0.21-0.i386.rpm
    3。bugzilla (bugzilla-2.18rc2.tar.gz)
    4。web服务器,这里用apache (httpd-2.0.55.tar.gz)
    5。perlmodules(模块) 下载地址:www.cpan.org(可以直接用模块名搜索,也可以以其他方式)
    二:安装步骤。
    1。安装mysql。
    # cd /
    # mkdir mysql
    # cd mysql
    (将所需文件放在此目录下,可通过挂载光驱输入,也可利用scrt上传,至于scrt使用方法,不作讲述)
    # rpm -ivh MySQL-server-4.0.21-0.i386.rpm
    # rpm -ivh MySQL-client-4.0.21-0.i386.rpm
    # rpm -ivh MySQL-devel-4.0.21-0.i386.rpm
    2.安装apache
    # cd /
    # mkdir apache
    # cd apache
    (将安装文件放在此目录下)
    # tar zvxf http-2.2.0.tar.gz
    # ./configure
    # make
    # make insatll
    # vi /etc/httpd/conf/httpd.conf(修改ServerName这行后面部分为本机IP地址,如:
         ServerName 192.168.1.65:80)
    # /usr/sbin/apachectl start (启动acpache)
    3.安装bugzilla(在根目录下新建bugzilla目录)
    # cd bugzilla
    # tar zvxf bugzilla-2.18rc2.tar.gz
    # mv bugzilla-2.18rc2 /var/www/html/bugzilla(将bugzilla-2.18rc2改名放在apache默认安装目录下
    4.安装perl.(在根目录下新建perl目录)
    # cd perl
    # rpm -ivh ActivePerl-5.6.1.638-i686-linux.rpm
    5.安装perl模块
    (1)模块Appconfig
    # cd perl
    # tar zxvf Appconfig-1.56.tar.gz
    # cd Appconfig-1.56
    # perl Makefile.PL
    # make
    # makeinstall
    (2)安装CGI
    (3)TimeDate
    (4)DBI
    (5)DBD::mysql(此模块一定要在DBI之后安装)
    (6)Template-toolkit
    6.进入bugzilla目录,修改localconfig
    cd    /var/www/html/bugzilla
    ./checksetup.pl(检查模块的安装情况)
    vi    localconfig
    把$db_pass=’   ’;中填入一个数据库的密码(自己一定要记住,如这里输入xxx)
    7、 进入mysql 中创建我们自己的数据库
    #cd    /var/www/html/bugzilla
    Mysql>mysql –u root
    Mysql>create database bugs;
    Mysql>GRANT SELECT, INSERT, UPDATE, DELETE, INDEX, ALTER, CREATE, LOCK TABLES,
    CREATE TEMPORARY TABLES, DROP, REFERENCES ON bugs.* TO [email=bugs@localhost]bugs@localhost[/email]
    IDENTIFIED BY 'xxx';(此处填我们在上一步操作中的密码)
    mysql> FLUSH PRIVILEGES;
    mysql> quit;
    8、 输入管理员的邮箱、用户名、密码
    ./checksetup.pl
    9、 修改bugzilla的权限、属主和属组
    1、cd /var/www/html
    2、chmod 777 bugzilla
    3、chown –R apache.apache bugzilla
    10、 配置apache
    (1)、vi /etc/httpd/conf/httpd.conf
    (2)、去除这行的注释增加.pl:AddHandler cgi-scrīpt  .cgi  .pl
    (3)、在这行增加index.cgi   DirectoryIndex  index.cgi  index.html  index.html.var
    (4)、在未尾增加以下几行
    <Directory “/var/www/html/bugzilla”)
    Options +Indexes +ExecCGI
    AllowOverride Limit
    </Directory>
    (5)、进入bugzilla页面
    http://192.168.1.65/bugzilla
    (此安装经验,是总结了许多人的方法而成。)
  • 实现在sql server2000下批量构造数据环境

    2007-04-26 16:22:23

    在查询分析器中编写存储过程input5,实现此功能.
    前提:

    设数据库中表结构如下:
    编号sid int
    姓名sname char 10
    性别sex 2
    科目item 14
    分数score int

     
    代码:
    create proc input5
    as
    begin
         declare @i int
         declare @f float
         declare @x int
         declare @sname char(10)
         declare @sex char(2)
         declare @item char(14)
         declare @score int

         set @i=1
         while(@i<=100)
         begin
               set @sname='LI'+STR(@i,3,0)
               set @f=RAND(@i)
               set @sex=RIGHT(STR(@f,7,5),1)
               set @score=CAST(RIGHT(STR(@f,7,5),2) AS int)
               if @sex='1' or @sex='2' or @sex='3'
               begin
                    set @sex='y'
                    set @item='shuxue'
               end
               else
               begin
                    set @sex='n'
                    set @item='yuwen'
               end      
              insert into test1(sid,sname,sex,item,score) values(@i,@sname,@sex,@item,@score)
             set @i=@i+1
         end
    end
    执行:
    exec input5


数据统计

  • 访问量: 3034
  • 日志数: 5
  • 建立时间: 2007-04-26
  • 更新时间: 2007-05-24

RSS订阅

Open Toolbar