Filter Your Search

Filter Your Search
Web Development
Application Development
Hardware & Creative
Networking & Servers
Big Data & Business Intelligence
Game Development
Virtualization & Cloud
1   2   3   4   5  
View:   12   24   48  
Sort By:  
Using Mock Objects to Test Interactions

In this article by Siddharta Govindaraj , author of the book Test-Driven Python Development , we will look at the Event class. The Event class is very simple: receivers can register with the event to be notified when the event occurs. When the event fires, all the receivers are notified of the event. A more detailed description is as follows: Event classes have a connect method, which takes a method or function to be called when the event fires When the fire method is called, all the registered callbacks are called with the same parameters that are passed to the fire method Writing tests for the connect method is fairly straightforward—we just need to check that the receivers are being stored properly. But, how do we write the tests for the fire method? This method does not change any state or store any value that we can assert on. The main responsibility of this method is to call other methods. How do we test that this is being done correctly? This is where mock objects come into the picture. Unlike ordinary unit tests that assert on object state , mock objects are used to test that the interactions between multiple objects occurs as it should.

Light Speed Unit Testing

In this article by Paulo Ragonha , author of the book Jasmine JavaScript Testing - Second Edition , we will learn Jasmine stubs and Jasmine Ajax plugin.

Solr Indexing Internals

In this article by Jayant Kumar , author of the book  Apache Solr Search Patterns , we will discuss use cases for Solr in e-commerce and job sites. We will look at the problems faced while providing search in an e-commerce or job site: The e-commerce problem statement The job site problem statement Challenges of large-scale indexing

Project Management

In this article by Patrick Li , author of the book JIRA Essentials - Third Edition , we will start with a high-level view of the overall hierarchy on how data is structured in JIRA. We will then take a look at the various user interfaces that JIRA has for working with projects, both as an administrator and an everyday user. We will also introduce permissions for the first time in the context of projects and will expand on this. In this article, you will learn the following: How JIRA structures content Different user interfaces for project management in JIRA How to create new projects in JIRA How to import data from other systems into JIRA How to manage and configure a project How to manage components and versions

Profiling an app

This article is written by Cecil Costa , the author of the book,  Swift Cookbook . We'll delve into what profiling is and how we can profile an app by following some simple steps. It's very common to hear about issues, but if an app doesn't have any important issue, it doesn't mean that it is working fine. Imagine that you have a program that has a memory leak, presumably you won't find any problem using it for 10 minutes. However, a user may find it after using it for a few days. Don't think that this sort of thing is impossible; remember that iOS apps don't terminate, so if you do have memory leaks, it will be kept until your app blows up. Performance is another important, common topic. What if your app looks okay, but it gets slower with the passing of time? We, therefore, have to be aware of this problem. This kind of test is called profiling and Xcode comes with a very good tool for realizing this operation, which is called Instruments . In this instance, we will profile our app to visualize the amount of energy wasted by our app and, of course, let's try to reduce it.

Recording Your First Test

JMeter comes with a built-in test script recorder, also referred to as a proxy server ( ), to aid you in recording test plans. The test script recorder, once configured, watches your actions as you perform operations on a website, creates test sample objects for them, and eventually stores them in your test plan, which is a JMX file. In addition, JMeter gives you the option to create test plans manually, but this is mostly impractical for recording nontrivial testing scenarios. You will save a whole lot of time using the proxy recorder, as you will be seeing in a bit. So without further ado, in this article by Bayo Erinle , author of Performance Testing with JMeter - Second Edition , let's record our first test! For this, we will record the browsing of JMeter's own official website as a user will normally do. For the proxy server to be able to watch your actions, it will need to be configured. This entails two steps: Setting up the HTTP(S) Test Script Recorder within JMeter. Setting the browser to use the proxy.

Introduction to Hadoop

In this article by Shiva Achari , author of the book Hadoop Essentials , you'll get an introduction about Hadoop, its uses, and advantages

Why Big Data in the Financial Sector?

In this article by Rajiv Tiwari , author of the book, Hadoop for Finance Essentials , explains big data is not just changing the data landscape of healthcare, human science, telecom, and online retail industries, but is also transforming the way financial organizations treat their massive data.

Getting Started with WebSockets

In this article by Varun Chopra , author of the book  WebSocket Essentials – Building Apps with HTML5 WebSockets , we will try to understand why we need and what is the importance of WebSockets, followed by when to use them and how WebSockets actually work. Client server communication is one of the most important parts of any web application. Data communication between the server and client has to be smooth and fast so that the user can have an excellent experience. If we look into the traditional methods of server communication, we will find that those methods were limited and were not really the best solutions. These methods have been used by people for a long period of time and made HTML the second choice for data communication.

A Command-line Companion Called Artisan

In this article by Martin Bean , author of the book Laravel 5 Essentials , we will see how Laravel's command-line utility has far more capabilities and can be used to run and automate all sorts of tasks. In the next pages, you will learn how Artisan can help you: Inspect and interact with your application Enhance the overall performance of your application Write your own commands By the end of this tour of Artisan's capabilities, you will understand how it can become an indispensable companion in your projects.

Preparing our Solution

This article by Simon Buxton and Mat Fergusson , the authors of Microsoft Dynamics AX 2012 R3 Programming – Getting Started , covers the preparation work required before we start cutting code. Some parts of this may be skipped or reduced, depending on the scale of the development. This article does not cover the installation and configuration of the required environments; it is assumed that this is already done.

Introducing PostgreSQL 9

In this article by Simon Riggs , Gianni Ciolli , Hannu Krosing , Gabriele Bartolini , the authors of  PostgreSQL 9 Administration Cookbook - Second Edition , we will introduce PostgreSQL 9. PostgreSQL is a feature-rich, general-purpose database management system. It's a complex piece of software, but every journey begins with the first step.

1   2   3   4   5  
View:   12   24   48  
Sort By: