integration-testing

Integration Testing In Visual Studio With Different Project Types

廉价感情. 提交于 2019-12-06 03:39:49
We are in the middle of developing a new CRM, and it uses both WPF for local users, and a Windows Universal App (Store App) for the users in the field. The basic flow is this Customer calls in and gets scheduled on a field user in WPF app. Field user goes on service call and updates on Surface through Universal App. Customer gets billed from the WPF App. All the modules are in place and working, but I do not seem to be able to integration test the entire project flow due to the different Project Types. What I need to be able to do is add a reference to my Universal App in the unit test for my

Maintaining Session with Capybara and Rails 3

对着背影说爱祢 提交于 2019-12-06 03:06:41
问题 I have two capybara tests, the first of which signs in a user, and the second which is intended to test functions only available to a logged in user. However, I am not able to get the second test working as the session is not being maintained across tests (as, apparently, it should be). require 'integration_test_helper' class SignupTest < ActionController::IntegrationTest test 'sign up' do visit '/' click_link 'Sign Up!' fill_in 'Email', :with => 'bob@wagonlabs.com' click_button 'Sign up'

How design a Specs2 database test, with interdependent tests?

给你一囗甜甜゛ 提交于 2019-12-06 03:02:11
问题 Is there some preferred way to design a Specs2 test, with lots of tests that depend on the results of previous tests? Below, you'll find my current test suite. I don't like the var s inbetween the test fragments. They're "needed" though, since some tests generate ID numbers that subsequent tests reuses. Should I perhaps store the ID numbers in a Specs2 Context instead, or create a separate Object that holds all mutable state? And place only test fragments in the specification object? Or is

Can a test user 'LIKE' a brand page?

风流意气都作罢 提交于 2019-12-06 02:51:01
问题 I'm building an tab for a brand page, which I am testing via Cucumber/Selenium. I have created several test users in different states, but am hanging up on creating a test user who LIKEs my brand. When I visit my own brand page logged in as my real facebook user, I see a LIKE button. When I visit my brand page logged in as a test user, I do not see an option to LIKE the page. I have had no trouble creating or testing users who have given my tab/app permissions. All test users are associated

Dependency injection in Grails integration tests

烈酒焚心 提交于 2019-12-06 01:43:12
问题 I'm testing a service of my application thats depends of another services in runtime. When testing, the dependency inject seems doesn't works. Does dependency injection works in Grails artefacts when running integration tests? 回答1: Yes, when running tests (ie those in the integration directory), the application is started and all beans are created and injected as if the app were actually running. The only difference between the test app and the running app should be the configuration

Multi-language integration testing framework

亡梦爱人 提交于 2019-12-06 01:34:01
问题 Imagine that you have a fairly complex service-oriented architecture made by different components. Components are written in different languages (Java, PHP, Ruby) and communicate with each other in different ways (i.e. UI, REST API, in some cases sharing some DB tables, etc). I am trying to design an integration testing framework for some end-to-end testing. We already have unit/integration tests for the single components, but we would like to build something that fully tests our deployed

How to inject fake, stubbed or mock dependencies for Integration tests using Typhoon

*爱你&永不变心* 提交于 2019-12-06 01:23:54
I'm trying to write integration tests using KIF. My question is: How to inject stubbed, mock or fake dependency for particular view controller? Each view controller using dependencies like a data model, http client, store manager etc. comes from ModelAssembly, ApplicationAssembly, ManagerAssmebly. On storyboard, for login view i have a key path, containing value "loginViewController". Creating view controllers: ViewControllersAssembly.h @interface ViewControllersAssembly : TyphoonAssembly @property (nonatomic, strong) ModelAssembly *modelAssembly; - (id)loginViewController; @end

Integration tests broken after migrating to ASP.NET Core RC2

被刻印的时光 ゝ 提交于 2019-12-06 00:42:15
问题 In my integration tests, I use a TestServer class to work towards a test server instance for my integration tests. In RC1, I instanciated it using the following code: var server = new TestServer(TestServer.CreateBuilder().UseStartup<Startup>()); On RC2, TestServer.CreateBuilder() was removed. Therefore, I tried to create a new TestServer using the following code: var server = new TestServer(new WebHostBuilder().UseStartup<Startup>()); The problem I'm facing is that after RC2, the runtime is

Parsing URL for querystring values with Selenium IDE

╄→гoц情女王★ 提交于 2019-12-05 21:35:56
I'm new to integration testing, but have had great success so far buiding up a suite of tests using Se:IDE. As I've been running my tests, it has occurred to me that I'm generating a substantial amount of data and I'd like to clean up after myself. Most of my tests involve creating a new 'page', and the id is available in the querystring. I'd like to have Se:IDE store a querystring value and pass it to another page that calls a delete method to tidy up after I have run my verifications. I see that I can use the command storeLocation, but I'm not sure how I would go about parsing that value for

session object in rspec integration test

爱⌒轻易说出口 提交于 2019-12-05 21:04:07
问题 I am using rspec and capybara for integration testing. Is their a way to make session objects in request specs? I have a view page in which I use a session object to check its value to display selective content. The problem am facing is that I cannot create a session object in request spec. Here is an example of the view: <% if session[:role] == "Role" %> ---content--- <% else %> --content-- <% end %> And inside my request spec session[:role] = "Role" visit my_path But it throws me an error