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
2 answers

How can I emulate an HTTPS request under WebTest?

I have a Pyramid app that locks down certain functionality to HTTPS connections. The server is fronted by nginx (usually) and I use PasteDeploy to detect the HTTPS connection. From my environment.ini: [filter:proxy-prefix] use =…
Jonathan Vanasco
  • 15,111
  • 10
  • 48
  • 72
1
vote
2 answers

Web test details are not displayed when ran from an ordered test

I have an ordered test that contains 4 web tests. The problem is that Visual Studio seems to have a problem loading the test results for an individual test. I included a screenshot to supplement for the 1000 words. :) As you may see the 3rd test,…
Paul
  • 1,224
  • 2
  • 14
  • 31
0
votes
1 answer

Viewstate corruption with VS2010 Web Performance Tests

When running one of my Visual Studio web performance tests, I noticed intermittent exceptions when trying to decode viewstate: Message: Invalid length for a Base-64 char array. Call Stack: at System.Convert.FromBase64String(String s) at…
J. Polfer
  • 12,251
  • 10
  • 54
  • 83
0
votes
2 answers

how to impersonate a windows domain user for automated web testing?

we are about to build several UI test with selenium-rc and the java client the app itself is a classic asp web application that uses integrated security to retrieve the user's permissions from a database, and then, according to those permissions,…
opensas
  • 60,462
  • 79
  • 252
  • 386
0
votes
0 answers

One time login /logout in webtests

I am using selenium 2.20.0 for my JSF/Primefaces webtest. I have currently 40-50 webtest for my webapp. Currently before each webtest case I am login and after i am logout. This take very long time and it is repeating same steps in each test. I…
Mitesh
  • 378
  • 1
  • 6
  • 19
0
votes
1 answer

Django WebTest and Django Nose Selenium SAVEPOINT errors

I am using *django_webtest* to test my views and *django_nose_selenium* to test the ajax on my site ( I could not get webtest.sel working + static files were not served since debug=False when running unit tests). I am running the full test suite…
user316054
  • 523
  • 1
  • 6
  • 11
0
votes
0 answers

An exception occurred while invoking executor 'executor://webtestadapter/v1 error occurring After renaming the Webtest

I refactored the exisitng webtests(VS 2017) and they were running fine. As soon as I renamed them they are showing below error. Then I tried to rename back to the original name but still having this issue. Please help on this. ------ Discover test…
0
votes
2 answers

Code to pull data from Outlook to a website, is it possible?

I want to pull the subject and date from the Outlook application and this data will be posted to a website has text box and it will fill these boxes. Lets just say I have automated email has this website link Once I click on it it will open up the…
Zakria
  • 1
0
votes
0 answers

Visual Studio web test transaction total request time wrong

I have a very quick question. I have recorded web scenarios and created different transactions on top of those recorded web requests as well as load tests on it. When I run the load test and wanted to see the detail of each run, I figured the…
alex
  • 51
  • 4
  • 10
0
votes
2 answers

Simulate server error

I use the App Engine for run my application and want to test how it will handle server errors. Is there any possibility to simulate an error 500 via the WebTest ?
starter
  • 169
  • 2
  • 10
0
votes
1 answer

Load Testing in VS 2010

I am performing a webtest containing 3 pages once of which is a Silverlight page and a Controller page (every page is invoked from controller page and again the control is given back to Controller page). When the 1st link id clicked it generates one…
0
votes
2 answers

Validation Rules in Webtesting using VS2010

I'm creating a simple webtest (Recorded Web performance test) that makes sure that a correct error message is displayed if i try to login with a username that does not exist. However, there are two types of error messages that handle incorrect login…
Lexipain
  • 23
  • 4
0
votes
1 answer

Pyramid WebTest not catching ContextualVersionConflict

I have a pyramid 1.10 that I start with pserve. When I start the application it crashes with File "/home/cquiros/data/projects2017/personal/software/env_formshare/lib/python3.6/site-packages/pkg_resources/__init__.py", line 783, in resolve …
QLands
  • 2,424
  • 5
  • 30
  • 50
0
votes
0 answers

Wrong coverage report with WebTest

I have a pyramid application that I am testing using WebTest with the following code: class FunctionalTests(unittest.TestCase): def setUp(self): from test_app import main app = main({}) from webtest import…
QLands
  • 2,424
  • 5
  • 30
  • 50
0
votes
2 answers

How to get debug run in katalon again

I used Katalon for web testing for 1 month. But today I'm not seeing the debug run button. I look it up on the internet but they say that I have to buy a licence. Is there any way to do it for free?