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

canoo webtest json

I'm trying to test my rest services on Jboss 7.1 with canoo webtest. Below is the request. I'm not able to pass the json content to the server. However the same works with curl scripts. When i print the request object it comes as blank in my…
0
votes
1 answer

Think Time in Visual Studio Test Project

We have a requirement as below: We need to test N number of load of users for a single page aspx web application. If 100 load users we don't want 100 users to hit the web site concurrently. I've setup the web performance test project with Think…
Nil Pun
  • 17,035
  • 39
  • 172
  • 294
0
votes
1 answer

django-webtest Testing URLs on a page

How to get a list of all links on a page using django-webtest? In my case, i want to test that users have appropriate urls on a page, according to their permissions.
Neara
  • 3,693
  • 7
  • 29
  • 40
0
votes
1 answer

Grails Canoo Webtest plugin: invoke() fails to send JSON data in POST request

I'm evaluating Canoo Webtest for automated integration/functional testing as a Grails plugin. I have a REST app which I'm attempting to test, but Canoo Webtest doesn't seem to properly send the JSON data in POST request. My test code is like…
kaskelotti
  • 4,709
  • 9
  • 45
  • 72
0
votes
1 answer

What is the best way to search inside base64 strings?

I am using Visual Studio 2010, Web test project. A web request has a property of html body which is encoded to base64 when it is saved to file system. The problem is when I am trying to search for content of html body (that encoded in base64) in…
0
votes
1 answer

Accessing the information contained in the .webtestResult files in code

I'd like to programmatically retrieve information related to test results. After a test run, I want to go through the test results and, for each test failed, to get the name of the failed test, the reason why it failed (validation rule message or…
Paul
  • 1,224
  • 2
  • 14
  • 31
0
votes
2 answers

How to test webpages in java?

I have to test content of webpages . My mentor says to use selenium . I looked up and found it is tool used for testing and thought that 'll do .I tried Selenium IDE and found it repeat our action in web browser. But couldn't understand how to use…
user801154
0
votes
1 answer

Web Test Conditional Flow

I have created a webtest which is a series of web service requests. My data source contains a list of mobile numbers and these mobile numbers can be of two types - A and B. The problem is that data source contains the mix of A and B. When the test…
Varun Sharma
  • 2,591
  • 8
  • 45
  • 63
-1
votes
1 answer

Unable to get the Bearer Token - Web Test, Performance Testing

I'm creating a Web Test in Visual Studio 2017 for Performance Testing. Our web application is an Azure with an AAD authentication frontend. It is the authenticating as a test user that is failing. While recording with VS or fiddler, I'm failing to…
-1
votes
1 answer

Visual studio load test simulate multiple users with one user

I have a webtest in visual studio, which login to a website and does few clicks. I wanted to simulate this for 2000 users without having those many logins in a csv file or a database. Configured my webtest to run the test for 30 minutes by stepping…
hakuna
  • 6,243
  • 10
  • 52
  • 77
-1
votes
1 answer

Unable to run all values from csv file while doing a performance test

Im using VS Web Performance Test Tool. My Application has a login and few functionalities but doesnt have a logout . I one closes the browser and opens , it asks for login . Now, i have 5 rows in excel , but only the first is run and it stops.…
-1
votes
2 answers

Automated Web Testing Tools in Java

I want to test a Ajax based web application. I want to write the test scripts in Java and simulate the web browser. Simulation of a web browser is very important since Iam using very advanced Ajax library like jQuery in the web Application. Any…
Sumit Ghosh
  • 3,264
  • 4
  • 40
  • 59
-2
votes
1 answer

How to bind user defined extraction rule dynamically in WebTest?

Apart from "Promote Dynamic parameter to webtest parameter"(which binds session key only), Can we able to bind fetchgriddata=>grid name,execute grid action,etc? for which extraction rules are user defined.
Kiruthik
  • 17
  • 7
-2
votes
2 answers

How to set or modify the context parameter in Visual studio webtest via Windows powershell?

I can able to set or modify context parameter in VS webtest via command prompt. Command used in command prompt to change the context parameter in Visual studio webtest: Set Test.URL="http://google.com".
Kiruthik
  • 17
  • 7
-2
votes
2 answers

Extract Text from Response Body in Coded Webtest using vb

I have a Web performance Script in Visual Studio. I have turned this into Coded Webtest in VB by clicking on the Generate Code button. In my web test there are a 5 functions. Apart from the 1st the others are for SQL Procedures. Among a few things,…
1 2 3
17
18