Skip to content

Commit

Permalink
Merge branch 'hotfix/open'
Browse files Browse the repository at this point in the history
  • Loading branch information
canyuns committed Apr 1, 2017
2 parents dea2300 + 2cb5bef commit f76f7b4
Show file tree
Hide file tree
Showing 17 changed files with 129 additions and 31 deletions.
115 changes: 113 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,113 @@
# bugCatcher
捉虫记
![bug](README/capture_bug.png)

# 捉虫记

@[|Spring|Spring MVC|Mybatis]

-------------------

[TOC]

## 捉虫记简介

**捉虫记** 设计初衷是为了方便开发人员自测(当然了,对于需要自行完成测试的测试团队也是适用的),其主要特性为:

- **项目管理** :由需求方发起项目,并按照`瀑布流`软件开发模型跟踪整个项目的完成情况;
- **用例管理** :方便添加和管理测试用例,也支持Excel、Xmind等文件形式的用例上传,支持用例筛选,并为项目分配需要执行的用例;
- **项目质量报表** :报表以时间线的方式展示各个项目的质量变化;
- **自测质量排名** :以积分排名的方式展示项目成员自测质量高低;
- **精细化的权限控制** :精细的角色分离(产品、开发、测试),提供精细化的权限控制,某角色可以做什么,不可以做什么一目了然;

### 典型使用场景
![Alt text](README/liu.jpeg)
> **提示:**具体可参考下面`典型场景使用图示`一节,但是什么角色做什么不是绝对的,可以根据团队实际情况调整,比如,可以由测试人员发起项目。
## 使用方法

### 环境依赖
- **系统:**Linux
- **语言:**Java (Version>1.8)
- **数据库:**Mysql
- **其他工具:**Maven

### 初始化
- 修改pfcase-schema.sql中的admin账号的密码和E-mail地址(bugCatcher/src/main/resources/database/pfcase-schema.sql)
``` sql
INSERT INTO signon VALUES('admin','Your Password');
INSERT INTO account VALUES('admin','Your E-mail address','admin');
```

- 修改jdbc.properties中的mysql配置(bugCatcher/src/main/resources/orm/jdbc.properties)
```
# local
jdbc.driverClassName=com.mysql.jdbc.Driver
jdbc.url=jdbc:mysql://<mysql host>:<mysql 端口>/pfcase
jdbc.username=<mysql 用户名>
jdbc.password=<mysql 密码>
```

- 修改setup.sh中的mysql配置(bugCatcher/setup.sh)
``` bash
#!/usr/bin/env bash

mkdir ~/fileupload
mysql -h <mysql host> -P <mysql 端口> -u <mysql 用户名> -p<mysql 密码> < <上述pfcase-schema.sql文件的绝对路径>
```

执行`setup.sh`完成初始化

### 启动
mvn tomcat7:run -Dmaven.tomcat.port=<端口号> &
>**提示:**`<端口号>`设置为任意未被占用的端口即可
以部署在本机8080端口为例,打开 http://localhost:8080/ 即能打开捉虫记登录页面
![Alt text](README/signin.jpeg)

## 典型场景使用图示
### 新用户注册
![Alt text](README/new.jpeg)

#### `角色-功能对照表`
| 角色/功能 | 我的任务 | 执行用例 | 执行评价 | 新建任务 | 新建用例 | 查看用例 | 分配用例 | 上传用例 | 执行质量 | 华山论剑
| :-: | :-: | :-: | :-: | :-: | :-: | :-: | :-: | :-: | :-: | :-: |
| 测试 | 展示所有人的任务 ||||||||||
| 开发 | 只展示自己的任务 ||||||||||
| 产品 | 只展示自己的任务 ||||||||||
| admin | 展示所有人的任务 ||||||||||
>**admin:**内置账户,拥有最高权限,可以做任何操作,慎用。
### 产品发起项目,指定项目开发人员:
<img src="README/new_task.jpeg">

### 测试设计用例,将相关用例分配给该项目的开发人员:
新建用例,模块支持新建或者选择已有的:
![Alt text](README/new_case.jpeg)

选择项目,勾选该项目需要执行的用例并分配(用例支持按指定条件搜索/筛选):
![Alt text](README/fenpei.jpeg)

捉虫记也支持Excel、Xmind等文件形式的用例上传,但仅做备份用例使用:
![Alt text](README/upload.jpeg)


### 开发人员执行用例
执行一条,已执行栏目下勾选一条:
![Alt text](README/my.jpeg)

### 测试检查开发人员用例执行情况并给出评价
测试人员一条条检查下去,功能无误点击good按钮,执行不到位点击bad按钮(可以将bug链接填写上去),当项目下的用例全部执行完成以后会在项目概况下自动打分
![Alt text](README/pingfen.jpeg)

### 项目自测质量的打分会以图表的形式展现
![Alt text](README/pic.jpeg)

### 华山论剑
此栏目主要对执行用例的开发人员进行自测质量评价,评分有A(+20)/ B(+10)/ C(-10)三个等级,具体评价标准可以自行定义,最终会给所有人员一个积分排名
![Alt text](README/jian.jpeg)

## Todo List
- bug管理与跟踪
- 。。。

## 反馈与建议
- 邮箱:<canyuns【@】163.com>
Binary file added README/capture_bug.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added README/fenpei.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added README/jian.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added README/liu.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added README/my.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added README/new.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added README/new_case.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added README/new_task.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added README/pic.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added README/pingfen.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added README/signin.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added README/upload.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env bash

mkdir ~/fileupload
mysql -h <mysql host> -P <mysql 端口> -u <mysql 用户名> -p<mysql 密码> < <上述pfcase-schema.sql文件的绝对路径>
22 changes: 0 additions & 22 deletions src/main/resources/database/pfcase-dataload.sql

This file was deleted.

13 changes: 9 additions & 4 deletions src/main/resources/database/pfcase-schema.sql
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
CREATE DATABASE `pfcase` DEFAULT CHARACTER SET utf8;
use `pfcase`;



create table signon (
username varchar(25) not null,
password varchar(25) not null,
Expand All @@ -11,7 +16,6 @@ create table account (
constraint pk_account primary key (userid)
);


create table caselist (
caseid int not null auto_increment,
casename varchar(50) not null comment '用例名称',
Expand All @@ -33,7 +37,6 @@ create table caselist (
key `idx_priority` (`priority`)
)ENGINE=INNODB DEFAULT CHARSET=utf8 COMMENT='用例表';


create table task (
taskid int not null auto_increment,
taskname varchar(25) not null comment '任务名称',
Expand All @@ -52,7 +55,6 @@ create table task (
key `idx_taskdone` (`taskdone`)
)ENGINE=INNODB DEFAULT CHARSET=utf8 COMMENT='任务表';


create table taskcase (
taskid int not null default 0 comment '任务id',
caseid int not null comment '用例id',
Expand All @@ -66,7 +68,6 @@ create table taskcase (
key `idx_taskid_casescore`(`taskid`, `casescore`)
)ENGINE=INNODB DEFAULT CHARSET=utf8 COMMENT='任务用例关系表';


create table rank (
rankid int not null auto_increment,
taskname varchar(25) not null comment '任务名称',
Expand All @@ -79,3 +80,7 @@ create table rank (
key `idx_owner_score`(`owner`, `score`)
)ENGINE=INNODB DEFAULT CHARSET=utf8 COMMENT='积分排行表';



INSERT INTO signon VALUES('admin','Your Password');
INSERT INTO account VALUES('admin','Your E-mail address','admin');
6 changes: 3 additions & 3 deletions src/main/resources/orm/jdbc.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# local
jdbc.driverClassName=com.mysql.jdbc.Driver
jdbc.url=jdbc:mysql://localhost:3306/???
jdbc.username=???
jdbc.password=???
jdbc.url=jdbc:mysql://<mysql host>:<mysql 端口>/pfcase
jdbc.username=<mysql 用户名>
jdbc.password=<mysql 密码>

0 comments on commit f76f7b4

Please sign in to comment.