- cenbek
- Posts : 2
Join date : 2012-12-11
give error if page is not exist
Tue Dec 11, 2012 4:44 am
Hi.
i use asp.net mvc, and i try unit tests and behviour driven development tests.
i want to give error if a page doesn't exist.
For example, i use this code:
selenium.Navigate().GoToUrl(baseurl+"/Index");
i also deleted Index view. That is, no view/page at the "baseurl+"/Index" route.
In fact, there is no ındex page, bu my test gives success.
Thanks in advance.
i use asp.net mvc, and i try unit tests and behviour driven development tests.
i want to give error if a page doesn't exist.
For example, i use this code:
selenium.Navigate().GoToUrl(baseurl+"/Index");
i also deleted Index view. That is, no view/page at the "baseurl+"/Index" route.
In fact, there is no ındex page, bu my test gives success.
Thanks in advance.
Re: give error if page is not exist
Wed Dec 12, 2012 1:14 am
Can you assert on the basis of content of page
- cenbek
- Posts : 2
Join date : 2012-12-11
Re: give error if page is not exist
Wed Dec 12, 2012 4:02 pm
i can't understand what you said. Wht is the the basis of content of page.
i can't understand this?
Thanks.
i can't understand this?
Thanks.
Re: give error if page is not exist
Sun Dec 16, 2012 1:57 am
Assert the absence of certain element /text on page
Permissions in this forum:
You cannot reply to topics in this forum