Karate Spring Integration
Asked Answered
W

1

2

We have a Spring MVC application, Is it possible to integrate spring context in Karate ? .Say bind the SpringJunitRunner through the Karate runner. Or to lookup the bean by spring context ?

Wesley answered 6/12, 2018 at 0:44 Comment(0)
J
2

Anything is possible in Karate because you can always use Java interop.

You can use the documentation of the servlet-mocking as a reference: https://github.com/intuit/karate/tree/master/karate-mock-servlet

So you should be able to pass the context around as a config variable. Also I think there is a Spring helper to get access to an already running context (via Java) you can search for that also.

Joh answered 6/12, 2018 at 0:50 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.