acceptance-testing

How to trigger an `input` field's `newline` action in an Ember.js acceptance test?

时间秒杀一切 提交于 2019-12-11 13:44:19
问题 I had thought that keyEvent('.my input', 'keypress', 13); would trigger the input's newline action, but it doesn't seem to. It seems others have had a similar problem Is there any other/better way to trigger the newline action from my acceptance test? 回答1: Looks like triggering a keydown then a keyup event (instead of a keypress ) does the trick: keyEvent('.my input', 'keydown', 13); keyEvent('.my input', 'keyup', 13); 来源: https://stackoverflow.com/questions/37868688/how-to-trigger-an-input

how to tell autotest to correctly track changes in app source?

妖精的绣舞 提交于 2019-12-11 11:49:14
问题 I want to get autotest to run Steak acceptance tests whenever one of my rails app's relevant files is changed. After studying Rspec's and Cucumber's own autotest configs, I'm trying the following mappings: Autotest.add_hook :initialize do |at| at.add_mapping(%r%^spec/acceptance/.*_spec.rb$%, true) { |filename, _| filename } at.add_mapping(%r%^app/(models|controllers|helpers|lib)/. rb$%) { at.files_matching %r%^spec/acceptance/. _spec.rb$% } at.add_mapping(%r%^app/views/(.*)/. rb$%) { at.files

Calling entire feature file(or only when steps) into another feature file

三世轮回 提交于 2019-12-11 10:22:20
问题 I have been trying to call one base feature file which has steps which are repetitive across most of my other scenarios in suite. Since base/common feature file has around 50 odd steps(based on manual TC) and I had to verify every page/element hence it's becoming very long feature file. To avoid confusion I had divided entire base file into small sections by giving the scenario steps after every 4-5 steps to avoid the chain and added "#" as a prefix since I wanted whole file to execute as a

Organising JBehave stories

邮差的信 提交于 2019-12-11 10:08:58
问题 We've just started looking at using JBehave for acceptance tests and I was wondering how people that are using it are organising the writing of stories and the storage of story files. It's just development that are working on them at the moment so we have the story files stored in the resources folder alongside the Java code to implement them. I guess my actual question is how and where are you storing your story files and how does this work with the product owner or QA writing stories? 回答1:

Is there a way to run Ember.Testing acceptance tests with fake timers?

人走茶凉 提交于 2019-12-11 08:34:05
问题 I'm working on a project in EmberJS that has a set of acceptance tests (qUnit with EmberJS helpers). Now, I'm trying to optimize those tests as much as possible because waiting 10 minutes for every run is just not nice. Some tests that we have actually need to wait for some things to happen: a timer to run out, a minute to pass for the clocks to update, etc. I tried using sinonjs with faketimers, but this seems to mess up the ember run loop and any other usage of setInterval / setTimeout that

Ember Acceptance Test Failing in PhantomJS but Passing in Chrome

笑着哭i 提交于 2019-12-10 19:27:51
问题 I'm trying to write an acceptance test for my Ember app and I seem to be having some trouble when it comes to PhantomJS and the Ember test server. I'm running the following versions: Ember : v1.13.6 Ember Data : v1.13.7 PhantomJS is failing with the following error: Died on test #1 at http://localhost:7357/assets/test-support.js:2934 at http://localhost:7357/assets/test-support.js:6640 at http://localhost:7357/assets/test-loader.js:31 at http://localhost:7357/assets/test-loader.js:21 at http:

Codeception: [RuntimeException] Call to undefined method AcceptanceTester::wait

早过忘川 提交于 2019-12-10 16:47:49
问题 I'm making my first acceptance test with Codeception. When I run my test with wait() or waitForElement() , I get this message: [RuntimeException] Call to undefined method AcceptanceTester::wait Here is my acceptance.yml # Codeception Test Suite Configuration # # Suite for acceptance tests. # Perform tests in browser using the WebDriver or PhpBrowser. # If you need both WebDriver and PHPBrowser tests - create a separate suite. class_name: WebGuy modules: enabled: - WebDriver - \Helper

How to acceptance test captcha-protected web application functionality?

拈花ヽ惹草 提交于 2019-12-10 14:19:18
问题 I would like to add a captcha, such as reCaptcha, to a certain functionality on my site. How could I adapt my acceptance tests? Is the only solution to disable the captcha's on the staging site? Clarification: Of course I am not speaking of brute-force cracking my own captcha, but e.g. some option to inject a state into the captcha from the server side that my test knows about. PS My server side code uses the Pyramid framework, and my tests are written using Selenium 回答1: The point isn't to

How to navigate to feature file from resharper test session window in Visual Studio 2012?

≡放荡痞女 提交于 2019-12-10 10:02:45
问题 For acceptance testing I use TeckTalk SpecFlow in Visual Studio 2012. When I run all specflow scenarios, resharper unit test session windows is opened I can see all test results. Like on screen shot below. The question is, when I see failed test (scenario) in some feature file, how can I navigate directly to this feature file from resharper session window to edit it??? 回答1: It seems to work perfectly well if run via the new VS2012 Test explorer, which on my machine worked automatically from

unable to run codeception in virtual machine -Mink could not be found and loaded

家住魔仙堡 提交于 2019-12-10 09:27:19
问题 I installed a vm ubuntu guest OS. My app is running from the browser in my host OS at the url http://abc.localhost:8888 I type php codecept.phar run in the guest OS terminal. I get the following error: [Codeception\Exception\Configuration] Mink could not be found and loaded My acceptance.yml says # Codeception Test Suite Configuration # suite for acceptance tests. # perform tests in browser using the Selenium-like tools. # powered by Mink (http://mink.behat.org). # (tip: that's what your