27result_check.mql 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. -- ============================================================
  2. -- result_check 结果验证测试 (已知新版工具 loop 迭代数据污染)
  3. -- ============================================================
  4. -- 1. count(N) - 结果行数检查
  5. select * from /test/aaa/test_ext where e_name=^'ext'
  6. /**
  7. onerror(continue)
  8. output()
  9. **/
  10. ;
  11. -- 2. count(N) - 精确匹配
  12. select e_name from /test/aaa/test_ext where e_name='ext_001'
  13. /**
  14. onerror(continue)
  15. output()
  16. **/
  17. ;
  18. -- 3. match(Kn,Mn) 匹配第一行第一列
  19. select e_name from /test/aaa/test_ext where e_name='ext_001'
  20. /**
  21. onerror(continue)
  22. output()
  23. **/
  24. ;
  25. -- 4. match(Kn,Mn) 匹配第N行第N列
  26. select e_name, e_value from /test/aaa/test_ext where e_name=^'ext'
  27. /**
  28. onerror(continue)
  29. output()
  30. **/
  31. ;
  32. -- 5. 无验证 action
  33. select e_name from /test/aaa/test_ext where e_name=^'ext'
  34. /**
  35. output()
  36. **/
  37. ;
  38. -- 6. equal(N,F,V) 第N行第F列等于V
  39. select e_name, e_value from /test/aaa/test_ext where e_name='ext_001'
  40. /**
  41. onerror(continue)
  42. output()
  43. **/
  44. ;
  45. select e_name, e_value from /test/aaa/test_ext where e_name='ext_002'
  46. /**
  47. onerror(continue)
  48. output()
  49. **/
  50. ;