1. 程式人生 > 其它 >效能測試場景設計

效能測試場景設計

效能測試需求

單場景

with open("n.txt",'w',encoding='utf8') as f:
    for i in range(1,10001):
        f.write(str(i))
        f.write('\n')

CRUD

查詢禮品

{"status":200,"msg":"success","result":{"id":1,"productName":"product1","price":1.0,"stock":9899999}}

兌換禮品

{"status":200,"msg":"success","result":"下單成功!下單商品為:product1"}

查詢訂單

{"status":200,"msg":"success","result":{"id":1,"orderNumber":"n305udx6jqu2pjxt","orderProductName":"product1","orderPrice":1.0,"count":1,"buyDate":"2021-12-11T14:26:05.000+0000"}}

待更新

混合場景

待更新

穩定性場景

待更新

異常場景

暫未考慮

============================= 提升自己 ==========================
> > > 1、諮詢問題,請加作者微信:
ren168632201
> > > 2、效能測試從0到實戰: https://www.cnblogs.com/uncleyong/p/12311432.html
> > > 3、自動化測試實戰: https://www.cnblogs.com/uncleyong/p/12016690.html
> > > 4、測試基礎彙總: https://www.cnblogs.com/uncleyong/p/10530261.html
> > > 5、宣告:如有侵權,請聯絡刪除。
============================= 升職加薪 ==========================