functional-testing Questions

6

Solved

How do I run only Test 3 from the following tests? module.exports = { 'Test 1':function(){}, 'Test 2':function(){} 'Test 3':function(){} }
Escargot asked 3/2, 2015 at 21:21

3

I am writing functional tests with Symfony2. I have a controller that calls a getImage() function which streams an image file as follows: public function getImage($filePath) $response = new Stre...
Mame asked 31/3, 2013 at 21:23

2

I'm using Codeception v2.4.1 with PHPUnit 7.1.3 in a new Symfony 4 project. I created a functional test, and attempt to run it, and receive an error: ./vendor/bin/codecept run functional There wa...
Turd asked 4/5, 2018 at 21:47

1

Solved

I need to functionally test the a subscriber in Symfony 4 and I'm having problems finding how. The Subscriber has the following structure /** * Class ItemSubscriber */ class ItemSubscriber implem...
Vamp asked 5/3, 2020 at 9:1

2

The intern 2 documentation gives the following example of waiting for a condition to be true on a test page after loading it: this.remote .get(require.toUrl('./SomeTest.html')) .then(pollUntil('...
Broach asked 5/7, 2014 at 10:20

13

Solved

I need a way to take screenshots of my functional tests. Right now I'm using Selenium 2 with C# bindings. I pretty much want to take a screenshot at the end of the test to make sure the desired pag...
Ptah asked 27/7, 2010 at 17:4

2

My goal is to be able to write pure routes for an Express.js server. Is that even possible? For accessing the database and stuff I know I can use the fabulous Future monad to keep things pure, but...

3

Solved

I am having a really hard time trying to figure out how to properly configure functional tests on my realease pipeline. I have a solution that contains some web projects being built using the defau...

2

I would like to know how to import config sync files in my functional tests for modules I am testing. For instance, I have some custom content types I would like to test against, and there are a nu...

3

I have a class A that needs to the tested. The following is the definition of A: public class A { public void methodOne(int argument) { //some operations methodTwo(int argument); //some operat...
Dreamworld asked 23/4, 2014 at 6:20

4

Solved

It's trivial to test if an element is clickable with Protractor, but I'm stuck scratching my head trying to figure out how to check if an element is not clickable. I've attempted to wrap the click...
Moorish asked 9/1, 2015 at 11:39

9

Solved

If your controller action looks like this: respond_to do |format| format.html { raise 'Unsupported' } format.js # index.js.erb end and your functional test looks like this: test "javascript r...

3

Solved

I am currently writing functional tests for my controller, and I want to check if a line This is a test line appears on my page. I tried using assert_select "p" do assert_select "this is the te...
Storekeeper asked 1/7, 2013 at 20:6

2

Solved

I have one test that, if it fails, indicates larger problems with the app. There wouldn't be any point in running the rest of the tests if that one test fails. Is there a way to bail the suite if...

2

Solved

I'm new to testing with Pytest, and I've run into a minor but annoying hangup. In the command line test session results, I see my tests passing, but the percentage shown is not 100%, for some tes...
Gammadion asked 9/4, 2018 at 17:3

3

Solved

I am struggling to make this functional test with Espresso work on Android. My App is a Multdex app so I am following the instructions written at this link as follows : (https://developer.android.c...
Crepuscular asked 5/10, 2015 at 20:56

1

Do any of you know a workaround that would turn off the behaviour mentioned in the title? Each time I do something wrong in my test steps, the exception looks like below: Test method FunctionalTe...
Geaghan asked 3/12, 2018 at 9:45

2

Solved

Hi i am using phpunit for testing and Symfony\Bundle\FrameworkBundle\Test\WebTestCase for unit testing. So far there were no problem but now we start to use https and my tests are not working anymo...
Clarisclarisa asked 3/11, 2013 at 20:11

1

I feel confused about how to setup a database for the test envrionment in symfony 4. I used to deal with it in config_test.yml file in symfony 3 and below. What is the best practice ? Should I re...
Cameleer asked 5/6, 2018 at 10:52

1

Background: We have a rather large REST API written in Java that we're testing with combination of unit and functional tests. There are many variations that are required when testing it, particul...
Amylopectin asked 11/10, 2016 at 17:26

2

I need to write a functional test suite (that will test a GraphQl API). The test suite will be in a separate repo and container from the API. One approach I thought of would be to use a BDD...
Martijn asked 16/3, 2017 at 18:16

2

I'm trying to test a Java method that makes a request to a remote REST server to retrieve some JSON data, extracts an ID from that JSON, then uses the ID to make another request to the same server ...
Crease asked 17/11, 2017 at 23:5

1

Solved

I have an API wrapper class WfcAPI written in Python 3 which I want to test using PyUnit. The setUpClass() for WfcAPI involves logging in to the external API server. The current functional test im...

2

I followed sitepoints Testing Symfony Apps with a Disposable Database Tutorial. I added Fixtures in my Testcase and no Errors appear during SetUp. If i add an Error in the Fixtures (e.g. leaving a ...
Pyongyang asked 27/1, 2017 at 11:6

3

I have seen a couple questions online related to this issue (How to set default browser window size in Protractor/WebdriverJS) but they don't address my issue. I have the tests that I want to be a...
Busby asked 25/8, 2014 at 20:28

© 2022 - 2024 — McMap. All rights reserved.