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 8642345
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T11:45:02+00:00 2026-06-12T11:45:02+00:00

I’m trying to load test a web service. I’ve got a simple method that

  • 0

I’m trying to load test a web service.

I’ve got a simple method that takes 2 params that get sent to the web service and returns the response, and I created a Unit Test from this method.

Because I want need to test various different inputs to effectively test the service, I setup a CSV with ~1000 rows as a DataSource for the Unit Test.

I can run this one Unit Test and it will spin through all the rows, sequentially calling the web service with different values.

However, this is not what I need. I need each row to correspond to a different user on a different thread, using the Load Test configuration to include think times, ramp up users with step load, test mix config, etc.

I can achieve this by removing my data source from the unit test and hard-coding values .. but this is a fundamentally flawed test: In order to really test the web service, I need each user to be sending different values and getting different results.

…

So, how can I hook a data source to a load test and have that load test start each user’s instance of a unit test with different values?

  • 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-12T11:45:04+00:00Added an answer on June 12, 2026 at 11:45 am

    I ended up using this answer as a guide: https://stackoverflow.com/a/7813465/237723

    Rather than create a Unit Test from the console app method and Load Test that Unit Test, I created a simple ASP.NET web form that took the inputs and called the web service.

    I recorded a Web Performance Test using this new form, and created a Load Test to run that WPTest.


    1. After recording the test, I added the CSV as a DataSource to this test.

    2. There were 2 ‘Requests’ recorded: the initial GET & subsequent POST. Make sure you leave them both! I removed the favicon.ico request because it didn’t exist. (these precautions may be avoidable)

    3. By expanding the POST Request, I modified the properties of the TextBox parameters that corresponded to my 2 web service inputs to get their values from the appropriate column in the CSV.

    4. I changed the DataSource Access method to ‘Do Not Move Cursor Automatically’ (You have to expand the DataSource to the table and edit its properties via right-click/F4.)

    5. I then created the WebTestPlugin (from the linked answer) that manually moves the cursor according to the UserID (an int) being run. This will correspond to the user instance the Load Test spins up according to the step plan. After you create this class, build the project and then add it to your Web Performance Test.


    public class webtestplugin : WebTestPlugin
    {
        public override void PreWebTest(object sender, PreWebTestEventArgs e)
        {
            base.PreWebTest(sender, e);
            e.WebTest.MoveDataTableCursor("DataSource1", "addresses#csv", e.WebTest.Context.WebTestUserId);                        
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

That's pretty much it. I'm using Nokogiri to scrape a web page what has
I've got a string that has curly quotes in it. I'd like to replace
I am doing a simple coin flipping experiment for class that involves flipping a
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
Seemingly simple, but I cannot find anything relevant on the web. What is the
I'm trying to create an if statement in PHP that prevents a single post
I am trying to understand how to use SyndicationItem to display feed which is
Basically, what I'm trying to create is a page of div tags, each has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and

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.