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
0
votes
0 answers

How to handle concurrency conflict for Webtests trying to access added item

I have a webtest where I am making POST request request1 for adding an item and then request2 to remove same item. Upon running I am getting following error. Store update, insert, or delete statement affected an unexpected number of rows (0).…
0
votes
1 answer

Error running FitNesse Web Test Examples

I've just downloaded FitNesse WebTest and ran into this issue after starting FitNesse and SeleniumRC. start browser System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. --->…
Gilbert Liddell
  • 1,203
  • 4
  • 14
  • 21
0
votes
2 answers

Use CSV file to change URL for web test

In Visual Studio Web test my URL is https:example//api/{{test1}}/mode/{{test2}} Here I want to pass values of test1 and test2 from a CSV file. I…
0
votes
1 answer

Load testing IdentityServer4 gives Exception: Correlation failed when trying to request signin-oidc route after sing in

We are moving our application to IdentityServer4 for our application, I’m trying to write a load test using Visual Studio and can run it manually on my local machine through the browser, but when I record a webtest and try to reply it, I’m getting…
0
votes
1 answer

How dynamic parameters are getting generated and how to capture them in web test in Visual Studio for Performance Testing

How do I get new id token (authentication token) every time I ran a web test from Visual Studio. My web application is using OpenID Connect and Azure Active Directory to login into the web application. After reading and investigation, I understood…
0
votes
0 answers

Is there a AAD login web test that I can use for the Azure availability test as the one I am using is randomly generating context parameter errors?

We are running a web test that uses AAD to login to a web site. When run via Visual Studio the web test runs correctly. However, when run in Azure availability this generates missing context parameter errors. I have attached the error call stack.…
0
votes
1 answer

Visual studio not showing correct result after writing to repository

I recently got some issues with my load testing in visual studio. Everything works great with the test until the test finishes and visual studio are writing a report. Visual Studio is generating a report of the load test. It shows some false…
0
votes
0 answers

Visual Studio 2015 webtest context parameter not being dereferenced in a URL

I have a (non-coded) Visual Studio webtest where a required context parameter is always successfully extracted from an HTTP Response. Let's call it myParam. In my webtest, I use the context parameter to define a URI in a later HTTP Request, like so:…
DRosser9
  • 1
  • 2
0
votes
0 answers

Passing visual studio webtests fail in test explorer

I have a web performance and load testing project which executes as epected when I open the test definition and hit run however fails when i run through test explorer. I have narrowed this down to only tests which reference another project in the…
0
votes
0 answers

How to pass UUID in the PUT request when using webtest?

I am trying to test the PUT endpoint using webtest module for that. Here is what I am trying to do. update_user = {'lName': 'TEST'} live_testapp.put_json( '/v1/user/{uuid},', params=(uuid, update_user), headers={ …
June2017
  • 169
  • 3
  • 14
0
votes
0 answers

Visual Studio- Web Tests failed with message " Context parameter '$HIDDEN1.NAP' not found in test context " and web test redirecting to login page

our web test are working fine earlier , when we have migrated our login to AAD, web tests failed with the below reasons: Request failed: Context parameter '$HIDDEN1.NAP' not found in test context Redirecting to Login page.
SV kumar
  • 1
  • 3
0
votes
0 answers

How to Run VS2017 WebTest from Command Line?

How can I run MS WebTest from Command Line? I'm getting DLL not found error. 1st Step I copied everything in \Debug folder to special location to run. 2nd Step I used VS2017 Command Prompt to run WebTest as described in Tutorials mstest…
TTCG
  • 8,805
  • 31
  • 93
  • 141
0
votes
1 answer

Visual Studio Web Performance tests and Azure AD B2C sign-on process

We have some web performance tests created in Visual Studio to test our websites. Now with the replacement of our own forms login with Azure AD B2C these tests need updating to automate the initial login step of the tests. If I record a new test of…
0
votes
0 answers

Using Webtest 2017 Why does my Form Post Parameters flip after I checkout the code from the repository?

Using: Webtest 2017 Note: I'm a webtest newbie I recorded a few steps on a webpage and on one of the pages I am selecting a file I want to upload. In the Webtest script I have a Form Post Parameters folder with two parameters. One being license…
user3531858
  • 155
  • 5
  • 17
0
votes
1 answer

WebTest / LoadTest in Release Management

I build a simple webtest in Visual Studio: As PandoraBox variable I filled in the URl of our development environment. When doing a release via release management to this environment I run this test and also as load test. So far so good. Today we…
Dave Smits
  • 1,871
  • 14
  • 22