system-testing

TFS - order of automata tests to execute

孤者浪人 提交于 2020-01-05 07:41:26
问题 Supposing I have system tests: A and B, where A includes a record to a database, B tries to modify it. When A fails, B will fail as well. A and B are written as "unit tests" (test methods), A and B are tests cases in TFS as well, automated, linked to these "unit tests". I put them on a test plan, test suite, both of them. I want to execute them with the "Run Functional Tests" step. How can I tell TFS to execute them in the right order? What is the best practice to develop tests like these?

How can I stop all the currently ongoing Ajax queries that DataTables instance have started?

我的未来我决定 提交于 2019-12-30 06:34:08
问题 Brief Description Resetting a test server to a known state causes my tests to fail due to Ajax requests launched by DataTables instances being ongoing at the time the server is reset. I'd like to prevent this by stopping the DataTables requests before the server is reset. Detailed Description I have an application in which I use DataTables on some pages. These DataTables all perform server-side queries to populate their tables. When I perform system testing, sometimes there is a race

How to setup puffing-billy to Rails System Test

ε祈祈猫儿з 提交于 2019-12-25 01:13:28
问题 I'm trying to setup puffing-billy to work with Rails System Test. Since it uses Capybara for that, I tried all the documented Capybara solutions here, but didn't seem to get it correctly setup. System Test generates an application_system_test_case.rb for config stuff. Here's how it looks like: require "test_helper" require 'billy' class ApplicationSystemTestCase < ActionDispatch::SystemTestCase driven_by :selenium, using: :headless_chrome, screen_size: [1400, 1400] Capybara.javascript_driver

What's the alternative to use Thread.Sleep when working with Selenium in system testing?

社会主义新天地 提交于 2019-12-14 03:49:29
问题 I have a TestMethod using Selenium as below: [TestMethod] public void ShouldSendPasswordReminder() { // go to loginregister url _fireFoxWebDriver.Navigate().GoToUrl(UkPaBaseUrl + "loginregister.aspx"); Thread.Sleep(1000); // click the forgotten password _fireFoxWebDriver.FindElement(By.LinkText("Forgotten your password?")).Click(); Thread.Sleep(1000); // enter your email address _fireFoxWebDriver.FindElement(By.Id("PasswordResetRequest1_PasswordResetRequest_Username")) .SendKeys("username

Setting current_user in system tests

社会主义新天地 提交于 2019-12-11 17:02:45
问题 I'm using system tests to verify that the following flow works as expected for a user: Sign up in a form Get signed in Visit account page Update account information However, I'm getting an error after user creation: Puma caught this error: Couldn't find User with 'id'=16 (ActiveRecord::RecordNotFound) /Me/MyComputer/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/activerecord-5.1.4/lib/active_record/core.rb:189:in `find' /Me/MyComputer/Documents/my_app/app/controllers/application_controller.rb

Replication of production env database to staging prior to deployment with Octopus

ε祈祈猫儿з 提交于 2019-12-11 03:16:27
问题 In order to verify the deployment of my database scripts better, I'd like to pre-initialize my Staging database with a mirror image of the Production database as a first step in my Octopus deployment. I'm using SQL Azure and DACFX. I'm curious if anyone else has tried this... Is Start-AzureSqlDatabaseCopy the right PS cmdlet to use for this operation? Will this effect the performance of my production environment? Are there any other options to consider? Update I developed the below script,

Test integration between two rails apps

不打扰是莪最后的温柔 提交于 2019-12-11 03:14:47
问题 I am developing a system composed of two different rails applications (server and client) which communicate via rest web services. I have tests for each app individually, but I would like to add some test for the integration between the two platforms, to assert that one creates a request compatible with what the other is expecting. Any hints would be appreciated. 回答1: I have a similar architecture and we are using VCR in order to record all server side responses and avoid make requests always

NUnit - Multiple properties of the same name? Linking to requirements

让人想犯罪 __ 提交于 2019-12-07 13:44:46
问题 I'm linking all our our System Tests to test cases and to our Requirements. Every requirement has an ID. Every Test Case / System Tests tests a variety of requirements. Every module of code links to multiple requirements. I'm trying to find the best way to link every system test to its driving requirements. I was hoping to do something like: [NUnit.Framework.Property("Release", "6.0.0")] [NUnit.Framework.Property("Requirement", "FR50082")] [NUnit.Framework.Property("Requirement", "FR50084")]

How can I run headless browser system tests in Rails 5.1?

本小妞迷上赌 提交于 2019-12-05 22:12:21
问题 The documentation for Rails 5.1 system tests is a bit sparse. I'm unable to get headless tests that execute javascript running. I think one approach entails installing and running xvf. But this is more manual setup than I'm used to when running capybara in other versions of rails. What's the most straightforward way to achieve this? 回答1: In Rails 5.1 system tests the driver used is set by the driven_by call in ApplicationSystemTestCase (test/application_system_test_case.rb). Assuming you have

NUnit - Multiple properties of the same name? Linking to requirements

梦想与她 提交于 2019-12-05 21:54:05
I'm linking all our our System Tests to test cases and to our Requirements. Every requirement has an ID. Every Test Case / System Tests tests a variety of requirements. Every module of code links to multiple requirements. I'm trying to find the best way to link every system test to its driving requirements. I was hoping to do something like: [NUnit.Framework.Property("Release", "6.0.0")] [NUnit.Framework.Property("Requirement", "FR50082")] [NUnit.Framework.Property("Requirement", "FR50084")] [NUnit.Framework.Property("Requirement", "FR50085")] [TestCase(....)] public void TestSomething(string