Test method and apparatus, electronic device and computer readable storage medium
Embodiments of the invention disclose a test method and apparatus, an electronic device and a computer readable storage medium. The method comprises the steps of obtaining multiple pieces of test dataand an object list, wherein each piece of the test data comprises a field name and a query statement...
Gespeichert in:
1. Verfasser: | |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | Embodiments of the invention disclose a test method and apparatus, an electronic device and a computer readable storage medium. The method comprises the steps of obtaining multiple pieces of test dataand an object list, wherein each piece of the test data comprises a field name and a query statement corresponding to the field name, and the test data is packaged in program codes; for preset objects in the object list, concurrently generating multiple tasks in a coroutine mode, and testing one piece of the test data in the multiple pieces of the test data by each task; and executing the tasks,and determining a test result according to the test data by the tasks. According to asynchronous coroutine mode-based full-automatic testing, field query requests are concurrently executed; and according to query results, the test result is obtained, so that the SQL query efficiency is improved.
本公开实施例公开了种测试方法、装置、电子设备及计算机可读存储介质。所述方法包括:获取多条测试数据以及对象列表;所述测试数据包括字段名、所述字段名对应的查询语句;所述测试数据被封装在程序代码中;针对所述对象列表中预设对象,以协程方式并发产生多个任务,每个任务测 |
---|