29 Star 13 Fork 88

openGauss / Yat

 / 详情

[YAT] Get the wrong value for case's property diff

已完成
缺陷 成员
创建于  
2022-05-12 18:40

【标题描述】:
【测试类型:SQL功能/存储功能/接口功能/工具功能/性能/并发/压力长稳/故障注入/安全/资料/编码规范】【测试版本:2.0.0】 问题描述

【操作系统和硬件信息】(查询命令: cat /etc/system-release, uname -a):

【测试环境】(单机/1主x备x级联备): single node

【被测功能】:

【测试类型】:

【数据库版本】(查询命令: gaussdb –V):

【预置条件】:

【操作步骤】(请填写详细的操作步骤):

  1. Set case property diff such as TOOLS/SERVER_TOOLS/gs_guc/Opengauss_Function_Tools_gs_guc_Case0029(diff=false) in schedule file.
  2. The property diff value was not correct parsed.

【预期输出】:

【实际输出】:

【原因分析】:

  1. 这个问题的根因
    In file yat-master\yat\schedule-parser\src\main\kotlin\com\huawei\gauss\yat\scheduler\parser\TestGroup.kt, method addTestCase()

     properties.forEach { (k, v) ->
         when (k) {
             "valid" -> testCase.properties.valid = getBoolean(k, v)
             "diff" -> testCase.properties.valid = getBoolean(k, v) 
             "timeout" -> testCase.properties.timeout = getLong(k, v)
         }
     }
    

The handling for key "diff" should be fixed.

  1. 问题推断过程
  2. 还有哪些原因可能造成类似现象
  3. 该问题是否有临时规避措施
  4. 问题解决方案
  5. 预计修复问题时间

【日志信息】(请附上日志文件、截图、coredump信息):

【测试代码】:

评论 (1)

Sun 创建了缺陷

Hey @Sun, Welcome to openGauss Community.
All of the projects in openGauss Community are maintained by @opengauss-bot.
That means the developers can comment below every pull request or issue to trigger Bot Commands.
Please follow instructions at Here to find the details.

yansong_lee 负责人设置为Sun
yansong_lee 任务状态待办的 修改为已完成

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(2)
5622128 opengauss bot 1581905080 10571797 min sun 1649929475
1
https://gitee.com/opengauss/Yat.git
git@gitee.com:opengauss/Yat.git
opengauss
Yat
Yat

搜索帮助