当前位置:网站首页>Dark horse programmer - interface test - four day learning interface test - day 4 - postman reads external data files, reads data files, IHRM project practice, employee management module, adds employe

Dark horse programmer - interface test - four day learning interface test - day 4 - postman reads external data files, reads data files, IHRM project practice, employee management module, adds employe

2022-07-24 00:49:00 Xiaobai's study notes

Today's learning goal

Use Postman Realization iHRM System login module and employee management module interface test

production , Develop test environment
pm.environment.set(“env_age”,99);

Postman Read external data files ( A parameterized )

When http request , The use of The data have high similarity , When the same request , Consider using parameterization ( Organize data into data files ).

Data file Introduction

  • CSV:

    • advantage :
      • The data organization form is simple , Suitable for occasions with large amount of data .
    • shortcoming :
      1. I won't support it bool Type data .( The data is postman After reading , Automatic addition “” The parcel bool value .)
      2. I won't support it Multiple parameters 、 Shaoshen 、 No arguments 、 bad parameter The interface test .
      3. Complex data types are not supported .( Such as Nested Dictionary 、 List etc. )
        pm.globals.set("
        [ Failed to transfer the external chain picture , The origin station may have anti-theft chain mechanism , It is suggested to save the pictures and upload them directly (img-CbYD4Umn-1658540534917)( The interface test - The first 04 God - Class notes .assets/image-20210711095615565.png)]
  • JSON:

    原网站

    版权声明
    本文为[Xiaobai's study notes]所创,转载请带上原文链接,感谢
    https://yzsam.com/2022/205/202207240048408328.html