0

Is there anything like cucumber in asp.net mvc?

i.e. something that will actually hit the web page using a browser?

Is selenium the only way?

1 Answer 1

1

You can use specflow to write cucumber style given-when-then steps, some of which could be selenium rc calls, or watin(.net version of watir) calls if you prefer. This way you can keep the syntax for writing acceptance tests that you're used to, while picking which ever web testing framework works best for you.

Since it's web stuff, with a bit of tweaking, you're not limited to using .net tools to test your asp.net mvc site - a web testing framework doesn't care how the website was made, just as a web browser doesn't.

Sign up to request clarification or add additional context in comments.

2 Comments

that's true, but I'm sure there will be issues with using models etc. cross platform.
You're correct there. It's likely that you will need to inject models into your views for testing, to ensure your web tests are deterministic, avoiding a lot of maintenance, and if you're using the same technology that's going to be easier. I was just thinking that if you had already invested the time in setting up one web testing technology, you wouldn't necessarily have to redo that work. in .net

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.