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
3
votes
1 answer

Pyramid authentication testing with webtest

I configured my pyramid app in order to have an user object attached to request once it has been authenticated following the official tutorial. So far so good... but while it works perfectly and I can test it using a browser, I don't understand why…
daveoncode
  • 18,900
  • 15
  • 104
  • 159
3
votes
1 answer

Creating a Visual Studio Web test to upload a file with a random file name

I have (after quite a bit of work) a web test that will upload a file to my SharePoint document library using a file that is included in the test and DeploymentItem that identifies that file so it can be used in the file upload post parameter. That…
Nat
  • 14,175
  • 5
  • 41
  • 64
3
votes
1 answer

TFS Load Testing Web Tests

I am configuring a load test and am curious/confused on settings. I am testing an intranet website, that is expected to have 6000 concurrent users. My employer had some previous consultant tell them that the load test users does not matter and that…
Dustin Laine
  • 37,935
  • 10
  • 86
  • 125
3
votes
1 answer

Setting up a basic load test

I have a very basic load test question. I am running a load test using VSTS 2008 and I have test rig with controller + 10 agents. This load test is against a SharePoint farm I have. My goal of the load test is to find out the resource utilization on…
ravikanth
  • 24,922
  • 4
  • 60
  • 60
3
votes
4 answers

Unit Test configuration for ASP.NET application

This is my first test for Asp.Net Web Application. We have an Engine consisting of several modules. I need to test classes in Engine Module. Though these clases are part of Asp.Net App, they consists of only business logic. How can I test these…
Asad
  • 21,468
  • 17
  • 69
  • 94
3
votes
1 answer

Webtest with session-id in url

We have an ASP.Net site that redirects you to a url that shows a session-id. like this: http://localhost/(S(f3rjcw45q4cqarboeme53lbx))/main.aspx This id is unique with every request. Is it possible to test this site using a standard visual studio…
Sorskoot
  • 10,190
  • 6
  • 55
  • 98
3
votes
2 answers

Can a standalone .EXE be created from a coded WebTest in Visual Studio Team Studio

I am running VS Team Studio 2008. I have created a web test that I want to use for monitoring a company web site. It interacts with the site and does some round trip processing. I want to create a standalone EXE file that can be run remotely. I…
Daniel Smith
3
votes
3 answers

Web Performance Test that requires login: How do you make it work in isolation and in load test?

I have a Visual Studio 2010 Load test, which contains a number of web performance tests. Running the web performance tests requires you to be logged in to the website under test. Accordingly, the load test contains an initialization step - a small…
LondonPhantom
  • 1,867
  • 3
  • 19
  • 26
2
votes
1 answer

How to call MoveDataTableCursor in a web test plugin to go through a limited set of rows in a table?

I have some difficulties understanding how the access method "Do not move cursor automatically" works for a web test data source. And the documentation out there seems to be far from exhaustive. First of all, let's assume there is a simple web test…
Paul
  • 1,224
  • 2
  • 14
  • 31
2
votes
2 answers

Unable to redirect to @login_required URL in django_webtest case

I'm using django_webtest to test my application. I faced with problem when try to test sign-up page. This page should create user and make other initial actions, authenticate newly created user and redirect it to the page specified in next parameter…
Marboni
  • 2,399
  • 3
  • 25
  • 42
2
votes
1 answer

TeamCity & .webtest

Does anyone know how I can run a .webtest file created by visual studio 2010 through TeamCity? I have installed the VS Test Agent and can run other types of tests but when i run the .webtest on the TeamCity server with MSTest directly on the command…
2
votes
1 answer

Working example to start canoo webtest from Groovy?

I would like to start a simple webtest from Groovy with Canoo. The example Canoo Example is not working. I think I am missing something with the Antbuilder class. Especially the "config" part, where a HashMap of properties is passed. I have tried…
skifan0
2
votes
1 answer

How to solve cast issues in ValidationRule classes' properties?

I need to create a few tests for the user roles in a web application. To minimize the description, one of the tests involves checking if a menu entry is displayed or not for an user. For this test, I use a table called UserRoles, that looks like…
Paul
  • 1,224
  • 2
  • 14
  • 31
2
votes
2 answers

How to test with Codeception if the page has meta-tag?

e.g. to ensure that does not exists on the page. $I->wantTo('Check that page can be indexed'); $I->amOnPage('/'); $I->dontSeeInPageSource(''); but it returns the…
Eugene Kaurov
  • 2,356
  • 28
  • 39
2
votes
1 answer

Testing cherrypy with nose/fixture/webtest (amidoinitrite)

I am developing a CherryPy application and I want to write some automated tests for it. I chose to use nosetests for it. The application uses sqlalchemy as db backend so I need to use fixture package to provide fixed datasets. Also I want to do…
zefciu
  • 1,967
  • 2
  • 17
  • 39