comparing two REST services to each other

前端 未结 3 1671
礼貌的吻别
礼貌的吻别 2021-01-16 22:04

Does anyone have any tips on writing tests that compare two REST services? We are doing this as a form of regression testing.

I was hoping to do something along the

3条回答
  •  没有蜡笔的小新
    2021-01-16 22:37

    Write Junit to get the response objects from both services. And then do the comparison in Java as you do normally for the objects.

    But why do you have to write two services that does the same thing and return same results? Atleast I assume the response objects schema is different between two services.

提交回复
热议问题