Cynic
Cynic

Reputation: 7266

Throttling connection speed in Automated test in El Capitan?

So I was planning on writing an automated test using python-selenium(really webdriver) that uses a subprocess to throttle the connection speed before a suite of tests. I found this great script for ipfw, only to find out that OS X El Capitan switched to PF(Packet Filter) at Yosemite.

Everything I keep running into is obsolete. So what's the best way to throttle internet via shell or cli on El Capitan? Does anyone have a script they can share? Network Link Conditioner is great for testing but it would be great if I could start catching bugs that occur at slow speeds with automation.

Upvotes: 0

Views: 509

Answers (1)

Balaji Dubey
Balaji Dubey

Reputation: 444

I was able to throttle network using network link conditioner. To install network link conditioner, you need to get Hardware IO Tools. More details are available in Installing Apple's Network Link Conditioner Tool

To automate the setting of bandwidth profile in network link conditioner, you can refer my answer in https://stackoverflow.com/questions/34876073/switch-network-link-conditioner-profiles-from-console-script

Upvotes: 1

Related Questions