Questions tagged [webtest]

WebTest helps you test your WSGI-based web applications, which includes most actively developed Python web frameworks.

WebTest helps you test your WSGI-based web applications. This can be any application that has a WSGI interface, including an application written in a framework that supports WSGI (which includes most actively developed Python web frameworks – almost anything that even nominally supports WSGI should be testable).

With this you can test your web applications without starting an HTTP server, and without poking into the web framework shortcutting pieces of your application that need to be tested. The tests WebTest runs are entirely equivalent to how a WSGI HTTP server would call an application. By testing the full stack of your application, the WebTest testing model is sometimes called a functional test, integration test, or acceptance test (though the latter two are not particularly good descriptions). This is in contrast to a unit test which tests a particular piece of functionality in your application. While complex programming tasks are often is suited to unit tests, template logic and simple web programming is often best done with functional tests; and regardless of the presence of unit tests, no testing strategy is complete without high-level tests to ensure the entire programming system works together.

WebTest helps you create tests by providing a convenient interface to run WSGI applications and verify the output.

To find out more, visit http://webtest.pythonpaste.org/en/latest/

270 questions
1
vote
1 answer

SSO using STS fails to login user for webtest in VSTS

All, I have a webtest for Web Performance testing, which does login prior to running other web requests in Visual Studio 2010 Ultimate. The login system uses STS and Windows Identity Framework to login users. For a normal login, ie not in my…
mcwhite21
  • 23
  • 5
1
vote
1 answer

Is it possible to test an ASP.NET webpage or website using NUnit?

I tried using NUnit to test my ASP.NET website..but I am not able to to link the dll. It will be of great help if someone shares a small website testing example using NUnit....It will help me better if someone shares example using visual studio…
1
vote
1 answer

Running mstest.exe with a web test that calls another web test

I have a web test, let's call it WebTestParent that calls another web test, WebTestChild. There is no problem when I run it from the IDE, but when I try running it from the command line using mstest, like this: C:\MySolution> mstest.exe…
Paul
  • 1,224
  • 2
  • 14
  • 31
1
vote
1 answer

VS Team Tester failed to run dynamic web test

I have a Testing project that contains a csv file which a webtest uses to run against one of our projects. For some reason, even though it is referenced correctly I receive the following error: Could not run Web test 'SubmitBadData' on agent…
NotMe
  • 87,343
  • 27
  • 171
  • 245
1
vote
2 answers

How can a webtest be made to accept file downloads?

I'm using Visual Studio Team Foundation Server 2008 Team Suite to create a webtest for a site. On some pages the response is a file download (usually a PDF), and I just need to test that the response comes back with the right status code and…
tspauld
  • 3,512
  • 2
  • 25
  • 22
1
vote
1 answer

Get HTML pape after Javascript loaded with webtest

So I run Pyramid application and have a .pug template with embedded JS which will run after page loaded. extends base.pug block subcontent .container h1 Homepage block scripts script. window.onload = function() { …
Thong Nguyen
  • 143
  • 3
  • 10
1
vote
4 answers

Request failed: Context parameter '$HIDDEN1.__EVENTVALIDATION' not found in test context

I'am looking for a solution to this problem : While running my automatic web test I received a request failed and here you are the response I found : Request failed: Context parameter '$HIDDEN1.__EVENTVALIDATION' not found in test context I figured…
1
vote
1 answer

Can I exclude counts from failed webtests in a VS.Net 2010 Loadtest?

I am using Visual Studio 2010 Ultimate to perform loadtests. These loadtest use recorded webtests. When running a loadtest with an increasing number of concurrent users, some steps in my webtests will start to fail. The first error is often an…
R. Schreurs
  • 8,587
  • 5
  • 43
  • 62
1
vote
1 answer

Can I run VS2008 Team System Load Test scenarios sequentially?

I have a couple of load test scenarios composed of several web tests in Visual Studio 2008 Ultimate. By default these scenarios are run concurrently - is there some way to run them sequentially, such that the first test runs for some duration, then…
Martin Doms
  • 8,598
  • 11
  • 43
  • 60
1
vote
2 answers

How to replace a URL in a canoo webtest

I have a canoo webtest where I would like to replace the current document URL by a new one, and proceed to that URL. Specifically, I'd like to replace a string "view.html" in the current document URL by "view-old.html" and navigate to the new…
Carles Barrobés
  • 11,608
  • 5
  • 46
  • 60
1
vote
1 answer

How to test flask-okta integration?

I have implemented okta integration in flask using oidc. @route(“/index”) @oidc.require_login def index(): return “ok” I wanted to write integration test using webtest but instead of 200 getting 302 as oidc is redirecting to okta url. How can…
ygbgames
  • 191
  • 9
1
vote
1 answer

How to start a grails webtest without starting the grails application?

I am working with the webtest plugin as functional test component for grails. It works fine, but is very slow - the whole application has poor response times (>1min per page) when under test. My feeling is that this is because the app, canoo webtest…
rdmueller
  • 10,742
  • 10
  • 69
  • 126
1
vote
1 answer

Nosegae Unit Tests with gae-session on a Python Google App Engine Project

I can't get gae-sessions to work when I use unit tests. I'm not sure if it's a cookie issue or an internal gae-sessions issue (it uses memcache/the datastore for persistance). It works fine on the actual app when accessed through a browser. I'm…
Asad R.
  • 1,051
  • 13
  • 20
1
vote
1 answer

Parameterize a Load Test while running a web test?

I currently using a WebTest to test a system. The user can vote and then can't log back in to change his vote. The WebTest use a list of username from a CSV file and all the account have a default password for testing purposes. Since I wan't to see…
Maxime Rouiller
  • 13,614
  • 9
  • 57
  • 107
1
vote
2 answers

Problems in creating a webtest to test logins

I'm needing some help with a coded web test. I created a coded web test to see how many accounts are valid to log into my application. I have a lot of accounts (2000+) and I need to know which of them are valid. Basically, I recorded a web test that…
betor
  • 11
  • 1