ALM 中要查看某个 test 更改历史, 需要下面两个表:

AUDIT_LOG and AUDIT_PROPERTIES

------- Get Test modification history --------

---- In ALM, 857, if filter out test case named '26169502', check its History. In the history, for the node of date '20-AUG-18', can see 6 items, changer is: asbopann

---- following is the steps to retrive the 6 records in ALM DB.

select * from tools_peopletools_857_qa_db.test where TS_USER_03 = 'Application Designer' and TS_Name = '26169502' and TS_USER_08 = 'Ready to Automate' and TS_Creation_Date > TO_DATE ('MAY-04-2017','MON-DD-YYYY');

--TS_TEST_ID = 84826

select * from tools_peopletools_857_qa_db.AUDIT_LOG where au_entity_id = 84826;

-- This returns all the modification history of test case '26169502'. Many items

-- Among the result, we interested in the one happened on 20-AUG-18, which is changing case to 'Ready to Automate'

-- AU_ACTION_ID = 21774729

select * from tools_peopletools_857_qa_db.AUDIT_PROPERTIES where AP_ACTION_ID = 21774729;

-- Now you can see 6 records which are the ones we want.

select * from tools_peopletools_857_qa_db.AUDIT_PROPERTIES where AP_OLD_VALUE = 'Planned' and AP_NEW_VALUE = 'Ready to Automate' and AP_ACTION_ID = 21774729;

-- With this one, we can just filter the record of changed to 'Ready to Automate'

最终整合的 sql:

select tt.ts_name, tt.TS_TEST_ID, ll.AU_TIME, ll.AU_USER, pp.AP_ACTION_ID, pp.AP_OLD_VALUE, pp.AP_NEW_VALUE from tools_peopletools_857_qa_db.test tt, tools_peopletools_857_qa_db.AUDIT_LOG ll, tools_peopletools_857_qa_db.AUDIT_PROPERTIES pp
where tt.TS_USER_03 = 'Application Designer' and tt.TS_USER_08 = 'Ready to Automate' and tt.TS_Creation_Date > TO_DATE ('MAY-04-2017','MON-DD-YYYY')
and tt.TS_TEST_ID = ll.au_entity_id and ll.au_action = 'UPDATE'
and pp.AP_OLD_VALUE = 'Planned' and pp.AP_NEW_VALUE = 'Ready to Automate'
and ll.AU_ACTION_ID = pp.AP_ACTION_ID order by tt.ts_name;

最新文章

  1. Oracle导出excel
  2. Ubuntu16.04下安装VS Code
  3. HttpCache缓存扩展方法
  4. hibernate框架int和Integer类型区别
  5. 原生js写的贪吃蛇网页版游戏特效
  6. Bete冲刺第二阶段
  7. derby数据库ql语法
  8. URAL 1671 Anansi's Cobweb (并查集)
  9. Log4J入门教程(一) 入门例程
  10. Shell脚本[运算表达式,条件控制语句]
  11. WinDbg调试DMP格式文件
  12. 8、Khala的设备间管理+通信
  13. mysql float double 类型
  14. MVC验证06-自定义错误信息
  15. 18、手把手教你Extjs5(十八)模块记录的拖放删除、拖放复制新增
  16. JSP面试题都在这里
  17. WINDOWS资源编译器出错信息
  18. Android逆向进阶(7)——揭开Hook的神秘面纱
  19. [NPM] Avoid Duplicate Commands by Calling one NPM Script from Another
  20. 高速AD中的LVDS和FPGA

热门文章

  1. CentOS/Linux开放某些端口
  2. 报文段、协议、MAC地址
  3. C# - 多线程(基础)
  4. DeepLearning.ai学习笔记(四)卷积神经网络 -- week4 特殊应用:人力脸识别和神经风格转换
  5. @Autowired mapper 层次 bean 带红线
  6. vue2.0 事件处理常用修饰符-----------------记录,加强记忆。
  7. SQL Server中文排序混乱
  8. hiveserver2启动成功但无法通过beeline连接
  9. thinkphp5调用支付宝商户号提现给用户
  10. C#中new的三种用法