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

  • SEARCH
  • Home
  • 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 3977920
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T04:58:54+00:00 2026-05-20T04:58:54+00:00

let me ask you something, if a have scenario like this: Scenario: Listing the

  • 0

let me ask you something, if a have scenario like this:

Scenario: Listing the questions for a user that has answered questions 
        Given I am a logged user called "vintem" 
         And I have the following projects 
                | Project   | 
                | Project 1 | 
                | Project 2 | 
        When I visit the projects page 
        Then I should see 
        | Project   | 
        | Project 1 | 
        | Project 2 | 

What would you generally do in this case to create the projects the
must be seen in the projects page? Suppose I am using a Repository
pattern would call the repository itself to create the projects?
Or simulate the creation of the projects using Watin?
In the case of calling the repository directly, my connection to
database would have to be same as the one in the web project right? I
can’t have a test db and a dev db in that case.
Thanks

  • 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-05-20T04:58:54+00:00Added an answer on May 20, 2026 at 4:58 am

    Your Given is there to set the context. It does not have to use the same constructs as the When or the then. You could if you wished just insert the projects in to the DB with straight SQL, It doesn’t matter. What I wouldn’t do is user Watin to set up the projects. This will make your tests more brittle as changes to the UI will effect your test. They will also run slower

    You say you are using the repository pattern. As indicated I’d use that along with sqllite for the back-end.

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

Sidebar

Related Questions

Before I ask the question let me state that I have attempted to google
Before I start let me ask that in objective-c 2.0 you can have a
I have something like the StackOverflow's "Ask Question" page, where a text-box is used
We have a database library in C# that we can use like this: DatabaseConnection
I have a file that takes a variable from the user then prints something,
Let's have an example like below: package xliiv.sandbox; import android.app.Activity; import android.os.Bundle; import android.util.Log;
Let's say I have a method in java, which looks up a user in
Let me explain best with an example. Say you have node class that can
Let's say that I have a SQLite database that I create in a separate
Let's say we have a simple recursion like. int x(int a){ if(a<10) x(a+1); else

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.