webtest Questions

4

Solved

I am using symfony 3.0 with phpUnit framework 3.7.18 Unit Test file. abcControllerTest.php namespace AbcBundle\Tests\Controller; use Symfony\Component\HttpFoundation\Request; use Symfony\Bund...
Sasnett asked 18/1, 2017 at 7:34

3

Solved

Does anyone know how I can test the image upload with using WebTest. My current code is: form['avatar'] =('avatar', os.path.join(settings.PROJECT_PATH, 'static', 'img', 'avatar.png')) res = form.s...
Incurvate asked 4/12, 2012 at 21:22

1

I am using jest-puppeteer to run my webtests. If I am running my tests all defined in one file, everything works perfectly. describe('user', () => { jest.setTimeout(12000); beforeEach(async...
Appreciation asked 20/7, 2018 at 11:19

3

I'm writing a webtest in Visual Studio 2015. The webtest I currently have allows me to run a static test. I would like to spice things up and therefore add more realistic data. The data I want to u...
Lovering asked 16/3, 2018 at 12:31

3

Solved

I am unit testing my flask app which uses the flask-login extension. I am setting up all my tests like this using webtest: class TestCase(unittest.TestCase): def setUp(self): app.config['TESTI...
Bedfast asked 13/2, 2014 at 20:50

2

if I send a request, and I expect the response to come trough SignalR, is it possible to test this using a LoadTest or PerformanceTest in Visual Studio?
Foundry asked 17/2, 2013 at 14:18

2

Solved

I am testing a form using WebTest. However, somes fields are created dynamically using JS, and thus these fields are not in the Form. I have an error when I try to set one of these fields: >>> re...
Rombert asked 28/3, 2014 at 9:15

2

I'm using Python and Webtest to test a WSGI application. I found that exceptions raised in the handler code tend to be swallowed by Webtest, which then raises a generic: AppError: Bad response: 50...
Oulu asked 22/11, 2012 at 4:10

3

Solved

we are in the middle of process migrating from Jenkins to Concourse CI and everything was pretty smooth so far. But now I have the issue, that I don't know how to solve. I would like to get any adv...

1

Solved

I am trying to setup a pyramid app to use both webtest and sqlalchemy. If I comment out the SQLAlchemy code, the webtests run without a problem. [Test log ] https://travis-ci.org/caffeinated-exper...
Flemish asked 17/11, 2015 at 16:5

2

I'm using Selenium for automated testing. What's the difference between java -jar selenium-server-standalone-2.24.1.jar -role hub and java -jar selenium-server-standalone-2.24.1.jar -role webdr...
Diazole asked 20/7, 2012 at 12:13

4

Solved

Is there a headless browser for .NET? I am looking for this in a testing context. Coming from Java I am thinking of something similar to HtmlUnit (http://htmlunit.sourceforge.net/) which itself i...
Scoundrel asked 17/1, 2010 at 12:34

3

Solved

I'm recording a web test using Visual Studio 2010. For each request, the expected response url is recorded, and a validation rule on the test ensure that these response are correct. The test is u...
Advocation asked 18/2, 2011 at 19:38

2

Solved

I'm rather new to unit-testing and am trying to feel out the best practices for the thing. I've seen several questions on here relating to unit-test inheriting a base class that itself contains sev...
Isoline asked 13/2, 2014 at 0:9

6

I'm using Microsoft WebTest and want to be able to do something similar to NUnit's Assert.Fail(). The best i have come up with is to throw new webTestException() but this shows in the test results ...
Ensheathe asked 22/10, 2008 at 4:11

2

Solved

I'm trying to get a FacebookLoginTest running. Problem is: the Symfony2 client does not send real HTTP requests, so it does not work on URLs of other services (like facebook). I know I could work ...
Psychiatrist asked 12/5, 2011 at 10:20

1

Solved

We have a bunch of commands in our Django site, some that are administrative and some that run on cron jobs that I can't figure out how to test. They pretty much look like this: # Saved in file /a...
Daloris asked 2/3, 2012 at 19:47

6

Solved

We have business users that we'd like to get involved writing webtests for our project, but purchasing full Visual Studio licenses just for this purpose seems like overkill. Are there any open so...
Spirt asked 24/6, 2009 at 20:55

2

Solved

I'm having an issue running unit tests for authorization in a Pylons app. It appears as though certain cookies set in the test case may not be correctly written or parsed. Cookies work fine when hi...
Rozier asked 28/4, 2010 at 17:50
1

© 2022 - 2024 — McMap. All rights reserved.