最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - How to clear console of postman programmatically - Stack Overflow

programmeradmin4浏览0评论

I'm trying to write assertions for api testing using postman. In order to debug I'm using console.log() function, which is cluttering the console of Postman.

I've tried console.clear(); in pre-request script but get TypeError.

Error in postman:

Can I programmatically clear the console in pre-request Script or Test section of Postman?

I'm trying to write assertions for api testing using postman. In order to debug I'm using console.log() function, which is cluttering the console of Postman.

I've tried console.clear(); in pre-request script but get TypeError.

Error in postman:

Can I programmatically clear the console in pre-request Script or Test section of Postman?

Share Improve this question edited Mar 3, 2019 at 11:04 Daniel Macak 17.1k4 gold badges32 silver badges51 bronze badges asked Mar 3, 2019 at 10:09 still_breathingstill_breathing 811 silver badge3 bronze badges
Add a ment  | 

2 Answers 2

Reset to default 6

"Can I programmatically clear the console in pre-request Script or Test section of Postman?"

Not yet, but it's on the wish-list...

https://github./postmanlabs/postman-app-support/issues/4690

It has now been implemented! https://github./postmanlabs/postman-app-support/issues/4690#issuement-1347768736

console.clear();
发布评论

评论列表(0)

  1. 暂无评论