简体   繁体   中英

Functionality similar to FakeWeb for Java

to test my program against webpages, which change quite often, I need to mock the answers. I've found FakeWeb for Ruby, which would be a good starting point. Unfortunately, there seems to be no library, which provides similar functionality for Java.

So, my question is: How can I "record" requests and response pairs and "replay" them later, so that my application always receives the same webpages. To make things even more difficult, it should work for PUT and GET methods too.

Thanks in advance for any answer.

Regards, Daniel

The great java alternative of FakeWeb is http://jadler.net . It is (imho) even more capable, eg it supports mocking based on different request bodies for the same url.

常见的Web应用程序测试工具是JMeter

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM