Skip to content

Conversation

@test-instructor
Copy link
Contributor

@test-instructor test-instructor commented Jan 10, 2023

测试用例引用testcase时会出现每次调用testcase都会实例化一个plugin,导致性能测试时引用testcase出现实例化n个plugin,大量消耗cpu,导致性能数据不准确
解决方案:
1、不同的用例,可以使用不同的debugtalk.py文件
2、调用initPlugin时做读写锁操作,由于兼容不同的用例使用不同的debugtalk.py,所以无法用once.do的操作

@test-instructor test-instructor changed the title 通过单例实现initplugin 通过单例实现initplugin,修复用例引用问题,防止重复创建plugin Mar 20, 2023
@test-instructor
Copy link
Contributor Author

test-instructor commented Mar 20, 2023

#1553 @debugtalk

@debugtalk debugtalk closed this in 53116be Apr 18, 2023
debugtalk added a commit that referenced this pull request Apr 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants