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

How to determine a website is good in load testing?

I'm a newbie at testing. For now, I'm using JMeter to build a test plan, then run it against my java web application. At the moment I just use (average response time, 90% line, throughput, and estimation of CPU/memory used) to give an approxiate…
Hoàng Long
  • 10,746
  • 20
  • 75
  • 124
1
vote
1 answer

How do I properly set up a single SQLAlchemy session for each unit test?

When testing my Pyramid application using WebTest, I have not been able to create/use a separate Session in my tests without getting warnings about a scoped session already being present. Here is the main() function of the Pyramid application, which…
latetojoin
  • 113
  • 1
  • 8
1
vote
1 answer

Site from different location

Is there any service which provides visuals of how a particular site looks when browsed from different locations across the world. This is useful for testing websites which auto detects users location and show some location based content.
Sampat
  • 1,301
  • 6
  • 20
  • 34
1
vote
1 answer

Is there is a way to detect data sent from client to server in Selenium?

I am working on a project with selenuim and phantomjs. I need to know after filling a form and clicking on the submit button if the data was sent to the server or if the data wasn't used. I tried to check the har file that I got after the submit…
Sivan
  • 11
  • 1
1
vote
2 answers

How to upload a file with unique name in Visual Studio Webtest

Using Visual Studio 2015 I've recorded a web test which includes uploading a file to the website. This site doesn't allow to upload files with the same name. In webtest scenario I have a File Upload Parameter with the property Generate Unique Name…
pavelicii
  • 1,590
  • 11
  • 21
1
vote
1 answer

Load test all requests are failed

I have created simple web application project, for that I Added Web and load test. When I tested web test project its working fine, but when I tested the load test then all requests are failed. Can you please help me how to resolve the above…
sekhar
  • 101
  • 7
1
vote
2 answers

SimpleTest WebTestCases affecting each other, not deterministic output

I am developing some project with CodeIgniter and write unit tests and web tests in SimpleTest. I've noticed that my tests are not deterministic, i.e. they produce different outputs in time. I mean the test cases that should be strictly…
jakub.g
  • 38,512
  • 12
  • 92
  • 130
1
vote
1 answer

What test points could there be for a web site?

I am a newbie tester for a web site. The backend of this site are several SQL Server databases. The UI is built with Ajax and ASP.NET. The whole site is hosted on Windows Server 2008. The site's strucuture is like this: several IIS web applications…
smwikipedia
  • 61,609
  • 92
  • 309
  • 482
1
vote
3 answers

Setting apartment state for using WatIn with MSTest

I am getting the following error in: The CurrentThread needs to have it's ApartmentState set to ApartmentState.STA to be able to automate Internet Explorer. With the following code: [TestClass] public class UnitTest1 { …
jparram
  • 804
  • 8
  • 24
1
vote
1 answer

Validate a webpage against its doctype (dtd) within a Canoo Webtest step using a Groovy script

How can I validate a webpage against its doctype (dtd) within a Canoo Webtest step with Groovy?
chris
  • 2,467
  • 2
  • 25
  • 25
1
vote
0 answers

How to submit form in PHPunit with symfony?

I am using symfony 3.0 and phpunit 3.7.1.I want to submit a form via phpunit file. File Name: abcControllerTest.php
Ashish Kumar Saxena
  • 4,400
  • 8
  • 27
  • 48
1
vote
2 answers

In VSTS How to run a 20 second webtest every 5 seconds

I have a WebPerfoamce test in Visual Studio Team System 2008, it's average execution is 20 seconds. I have a load test that runs the test every 5 seconds using: Test Mix Type: Based on user pace Tests per user per hour: 720 (Which should be 12 test…
TomEaton
  • 121
  • 2
  • 12
1
vote
1 answer

Capturing popups with Visual Studio Team webtests

We have a number of popups (generated using Javascript) that are displayed during page navigation. When we record the webtest, the script doesn't capture all of them. If there a way around this?
rbrayb
  • 46,440
  • 34
  • 114
  • 174
1
vote
1 answer

Calling REST API from Postman vs Visual Studio Webtest

I am facing one odd problem, I was able to make this (https://my.factcorp.com/ABCorp/Reporting/api/Events/) Rest API call from POSTMAN, but not from Visual Studio Web Test. PostMan call trace GET https://my.factcorp.com/ABCorp/Reporting/api/Events/…
Siraj
  • 31
  • 4
1
vote
1 answer

Load Tests Exception "file is being used by another process" C#

I'm using Visual Studio WebPerformance Tool and my problem is that all of my web-tests are working perfectly but when I run Load test (100 users) I'm getting an exception "The process cannot access the file because it's being used by another…
grabhints
  • 680
  • 8
  • 23