Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8403049
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T22:14:26+00:00 2026-06-09T22:14:26+00:00

How I can represent the following scenario using MSpec?: Scenario: Navigation to homepage When

  • 0

How I can represent the following scenario using MSpec?:

Scenario: Navigation to homepage
   When I navigate to /Guestbook
   Then I should be on the guestbook page

SpecFlow makes this sort of thing easier because we can pass parameters into our specifications:

[When(@"I navigate to (.*)")]
public void WhenINavigateTo(string relativeUrl)
{
}

With MSpec, the context/specification comes from the name of the class, so I can’t use any special characters (such as those used in a url).

What I would like to achieve is an output like:

Browsing the site, When I navigate to /guestbook
¯ should go to the guestbook page
Browsing the site, When I navigate to /news/article-slug
¯ should go to the news article with matching slug
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T22:14:28+00:00Added an answer on June 9, 2026 at 10:14 pm

    There’s not really a way to use special characters in the context or the specification in MSpec, it’s never been needed before. I think you’re the only person I’ve seen that has had a convincing reason to have a real url path in their spec. Generally you would avoid that, but if SEO specialists are reading your spec report then I can see that. You may want to try a different tool or submit a patch to MSpec that adds support for attributes that can override the string name of the context or spec.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can I represent the following co-ordinate triplets using variable type double? 512685.93 5403444.22 305.63,
Can I represent ontology by using XML? Why it is considered better to represent
I'm using a rest-api using php. Can someone tell me how to represent the
I'm wondering how I can represent the following in the criteria API return DataContext.Session.CreateQuery(
How can I represent the following in XSD. <price-update> <![CDATA[ arbitrary data goes here
How can I write just one expression to represent the following cases? These Matrix
How can I achieve the following structure without using tables or JavaScript? The white
I want to create a class structure that can represent the following heirarchichal structure
What's the second minimum value that a decimal can represent? That is the value
I'm trying to find a library for iPhone app that can represent a network

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.