以下为二维表信息
//统计严重等级Bug
SELECT severity,count(severity) FROM `bf_bugview` where product_id=476 GROUP BY severity
//统计创建者Bug
SELECT created_by_name,count(created_by_name) as count FROM `bf_bugview` where product_id=476 GROUP BY created_by_name ORDER BY count ASC
//统计解决者Bug
SELECT resolved_by_name,count(resolved_by_name) as count FROM `bf_bugview` where product_id=476 GROUP BY resolved_by_name ORDER BY count ASC
//统计各个版本Bug
select bf_add.version version,count(*) from bf_bug_info as b_info join bf_addonbug_476 as bf_add on (bf_add.bug_id=b_info.id) WHERE b_info.product_id = 476 GROUP BY version
 
//统计每一轮的新引入Bug
select bf_add.version,count(*) from bf_bug_info as b_info join bf_addonbug_476 as bf_add on (bf_add.bug_id=b_info.id) WHERE b_info.product_id = 476 and b_info.newly_bug= '是' GROUP BY bf_add.version
 
//统计每一轮的漏测Bug
select bf_add.version,count(*) from bf_bug_info as b_info join bf_addonbug_476 as bf_add on (bf_add.bug_id=b_info.id) WHERE b_info.product_id = 476 and b_info.missing_bug= '是' GROUP BY bf_add.version
//统计每一轮激活Bug
select bf_add.version,count(*) from bf_bug_info as b_info join bf_addonbug_476 as bf_add on (bf_add.bug_id=b_info.id) WHERE b_info.product_id = 476 and b_info.missing_bug= '是' GROUP BY bf_add.version
//统计每一轮的用例外Bug
select bf_add.version,count(*) from bf_bug_info as b_info join bf_addonbug_476 as bf_add on (bf_add.bug_id=b_info.id) WHERE b_info.product_id = 476 and b_info.case_bug= '是' GROUP BY bf_add.version
//Bug 类型分布
select
//统计每一轮的解决方案为已经修复和设计如此的Bug
select bf_add.version,count(*) from bf_bug_info as b_info join bf_addonbug_476 as bf_add on (bf_add.bug_id=b_info.id) WHERE b_info.product_id = 476 and (b_info.solution = 'Fixed' or b_info.solution='By Design') GROUP BY bf_add.version
//统计每个模块下的Bug信息(一直到所有模块节点)
select module_name,count(module_name) FROM bf_bugview where product_id = 476 GROUP BY module_name
 
//统计某个产品下有哪些模块
select b_pro_m.full_path_name,count(b_pro_m.full_path_name) from bf_product_module b_pro_m join bf_bug_info as b_info on (b_info.productmodule_id = b_pro_m.id) where b_info.product_id=476 GROUP BY b_pro_m.full_path_name
 
以下为三维表信息
//统计模块下的Bug信息
 
 
 
 
select bf_add.version version,count(bf_add.version) as '总数',count(bf_add_new.version) as '新引入',count(bf_add_miss.version) as '漏测',count(bf_add_testcase.version) as '用例外Bug',count(bf_add_fixed.version) as '已经修复或者设计如此'
from bf_bug_info as b_info join bf_addonbug_476 as bf_add on (bf_add.bug_id=b_info.id)
left join bf_addonbug_476 as bf_add_new on (bf_add_new.bug_id=b_info.id and b_info.newly_bug= '是')
left join bf_addonbug_476 as bf_add_miss on (bf_add_miss.bug_id=b_info.id and b_info.missing_bug= '是')
left join bf_addonbug_476 as bf_add_testcase on (bf_add_testcase.bug_id=b_info.id and b_info.case_bug= '是')
left join bf_addonbug_476 as bf_add_fixed on (bf_add_fixed.bug_id=b_info.id and (b_info.solution = 'Fixed' or b_info.solution='By Design'))
WHERE b_info.product_id = 476 GROUP BY version
 
 
 
select bf_add.version version,count(bf_add.version) as 'count1',count(bf_add_new.version) as '新引入',count(bf_add_miss.version) as '漏测',count(bf_add_testcase.version) as '用例外Bug',count(bf_add_fixed.version) as '已经修复或者设计如此',count(bf_add_reopen.version) as '激活'
from bf_bug_info as b_info join bf_addonbug_476 as bf_add on (bf_add.bug_id=b_info.id)
left join bf_addonbug_476 as bf_add_new on (bf_add_new.bug_id=b_info.id and b_info.newly_bug= '是')
left join bf_addonbug_476 as bf_add_miss on (bf_add_miss.bug_id=b_info.id and b_info.missing_bug= '是')
left join bf_addonbug_476 as bf_add_testcase on (bf_add_testcase.bug_id=b_info.id and b_info.case_bug= '是')
left join bf_addonbug_476 as bf_add_fixed on (bf_add_fixed.bug_id=b_info.id and (b_info.solution = 'Fixed' or b_info.solution='By Design'))
left join bf_addonbug_476 as bf_add_reopen on (bf_add_reopen.bug_id=b_info.id and b_info.reopen_count != '0')
WHERE b_info.product_id = 476 GROUP BY version
 
 
全局统计
//统计每个产品提交的Bug单数目
select bp.name,count(bp.name) count from bf_bug_info bf JOIN bf_product bp ON (bp.id=bf.product_id) where bf.created_at BETWEEN 20160101 AND 20161001 GROUP BY bp.name ORDER BY count DESC
//关键字title匹配
select bf.id,bf.title,bp.name from bf_bug_info bf join bf_product bp on (bp.id=bf.product_id) WHERE bf.created_at BETWEEN 20160101 AND 20161009 and bf.title like "DHCP%"
 
//按每个人员提交的Bug单
select bt.realname,count(*) count from bf_bug_info bf JOIN bf_test_user bt ON (bf.created_by =bt.id) WHERE bf.created_at BETWEEN 20100101 AND 20161009 GROUP BY bt.username ORDER BY bt.username DESC
 
//安装

BugFree后台统计Bug信息的更多相关文章

  1. Jmeter实现登录bugfree、新建bug、解决bug脚本(抓包工具实现)

    环境 Chrome jmeter3.1 fiddler4 win7 32位 Linux CentOs6.4 bugfree3.0.1 链接:http://pan.baidu.com/s/1gfHpbp ...

  2. (转)测试如何区别是前端的问题还是后台的bug

    常常说到的一个IT项目,包括前端开发,后台开发,软件测试,架构,项目经理,产品需求.那么对于一位优秀的软件测试工程师来说,需要区分前端和后台的工作就显得尤为重要. - 什么是前端和后台 简而言之,前端 ...

  3. MapReduce -- 统计天气信息

    示例 数据: -- :: 34c -- :: 36c -- :: 32c -- :: 37c -- :: 23c -- :: 45c -- :: 50c -- :: 33c -- :: 41c -- ...

  4. C# 后台添加Log信息

    我们在做项目的时候,经常会使用到Log日志,今天分享一下如何在后台添加Log信息 创建一个写Log的方法: public void WriteLog(string Action) { try { st ...

  5. 关于Socket建立长连接遇到的bug信息

    下面是本人在Socket连接的开发中遇到的bug总结 1."远程服务器关闭了Socket长连接'的错误信息 2.关于"kCFStreamNetworkServiceTypeVoIP ...

  6. HttpWebRequest调用WebService后台需要Session信息问题的解决办法

    今天在用HttpWebRequest调用后台ASP.NET 的WebService方法时遇到了一个问题,后台的WebService方法里使用到了Session对象中的用户信息,而Session对象中的 ...

  7. C# 前台和后台POST提交信息的实现方法

    一.系统A(官网)与系统B(第三方支付平台)数据交换的方式 1.1  页面浏览器方式:系统A以构造Form表单的方式,通过系统A客户的浏览器重定向到系统B(向系统B发送请求),B系统完成交易后,将交易 ...

  8. df -h统计的信息与du -sh不一致的原因(转)

    有时候会遇到这样的问题:df -h统计一个目录,显示有约100M可用空间,使用了5G:而用du -sh统计该目录下的文件大小,却发现总共才占用了1G.也就是说,二者统计结果差距巨大. 例如: 1.df ...

  9. (二十五)后台开发-分类信息的curd -展示所有实现

    案例1-分类信息的curd 步骤分析: 左边的dtree: 1.导入dtree.js 2.导入dtree.css 3.创建一个div 添加样式 class="dtree" 4.在d ...

随机推荐

  1. 使用元数据简化jdbc代码---查询操作(用到反射)

    使用元数据简化jdbc代码---查询操作(用到反射) 一  思路分析 简化就是把共同的地方提取出来并放到一个方法里,在用到时只要调用就ok了,上一篇介绍了更新的操作,而查询的操作相对来说比较复杂,因为 ...

  2. 对于over-posting的防御

    over-posting简单的说就是指用户通过猜测等手段得知了后端数据Model的属性名称,在数据更新或添加的时候提交了本不应该允许用户更改的数据库字段,并且在服务器端因为没有进行防御而将恶意提交的数 ...

  3. Windows Server、 Windows 区别

    今天脑补了普通Windows 操作系统与Windows Server区别,感觉清楚了很多. Microsoft WindowsServer,是美国微软公司研制的一套操作体系,它面世于1985年,起先仅 ...

  4. 如何查看SharePoint Server的版本信息

    可以通过查看注册表来得你当前运行的是SharePoint 2010的哪个版本,具体步骤如下: 1. 登录到安装了SharePoint Central Administration 的服务器. 2. 点 ...

  5. [DBSDFZOJ 多校联训] Password

    Password password.in/.out 描述 你来到了一个庙前,庙牌上有一个仅包含小写字母的字符串 s. 传说打开庙门的密码是这个字符串的一个子串 t,并且 t 既是 s 的前缀又是 s ...

  6. Foj 2296 Alice and Bob(博弈、搜索)

    Foj 2296 Alice and Bob 题意 两个人博弈,规则如下:轮流取0~9中的数字,最后Alice所得的数字个数为1~n中,数位在Alice所取集合中出现奇数次的. 双方想获得尽量多,问A ...

  7. 关于Linq中First、FirstOrDefault;Single、SingleOrDefault等方法的说明

    关于Linq中First.FirstOrDefault:Single.SingleOrDefault等方法的说明 这里以First.FirstOrDefault进行说明,其他类似. 1.First:取 ...

  8. 7、Python文件操作工具 openpyxl 工具 2

    创建一个工作簿 使用openpyxl没有必要先在系统中新建一个.xlsx,我们需要做的只需要引入Workbook这个类,接着开始调用它. >>> from openpyxl impo ...

  9. python连接数据库并插入数据

    1.Python创建数据库 import MySQLdb try: conn = MySQLdb.connect( host="127.0.0.1", port=3306, use ...

  10. Input and Output-The input is all the sources of action for your app

    Programs take input and produce output. The output is the result of doing something with the input. ...