黄瓜方案概述最佳做法

问题描述 投票:-1回答:1

下面是应作为我的方案执行的步骤的列表。

  1. 使用Redshift DB验证在S3位置生成的文件
  2. 验证原始脚本与最新脚本之间的重复项
  3. 验证最新脚本中的新添加的列
  4. 验证原始脚本和最新脚本中的旧列数据是否完整

而且我具有以下功能可以覆盖相同的内容。

     Feature:Add # of times PDP browsed to search and sort output files User Story CDH-3311
       @regression
      Scenario Outline: :Validation of file being generated at S3 location after job run
        Given user has the json file  with <country> and <brand>
         Then user execute the Generic-extract-Batch job
         Then user verify the  file is generated successfully at S3 location
         Then user verify the data in Redshift db with generated file
         Then user  verify the duplicate data  in latest sql script
          And  user verify the duplicate data in original sql script
          And  user verify PDP_VIEWS column in latest sql script
          And user verify   <old coulmn> data of original script 
          And user compare it with the latest sql script

         Examples: 
          | country | brand | old column            | 
          | US      | test1  | test6           | 
          | US      | test2  | STORE                 | 
          | US      | test3  | test7 | 
          | US      | test4  | SALESUNITSCORE        | 
          | US      | test5  | TOTALSCORE            | 

请确认大纲符合最佳实践,并且正确表示了上述测试需要做的事情

cucumber cucumber-java
1个回答
0
投票

不确定业务流程,但请确保示例表列中没有空格。因此最后一栏应为old_column

© www.soinside.com 2019 - 2024. All rights reserved.