A very nice system is use for logging in android, usually called a centralized system.
Developer can filter log statements by using android tools.
We can create log statements by using android.util.Log class. Log class have so many methods l...
In android we need to generate SHA1 key fingerprint to get Google Api key for Google Map.
It just a one line command to generate SHA1 key.
First of all create your .keystore file and sign to your app and take down this keystore lo...
We know that Its not possible that our android device should be always connected with a network.
It might be a situation when we would not connected with any network, So to check it whether we are connected with any network or not.
We check...
Test Scenarios
It is a high level document that consist of all the possible combinations or ways of testing the application.
Generally, test scenarios are written to understand the flow of the application.
Why it is high level document?
...
What is Build?
It is a piece of software which is converted from code to application format.
It consists of some set of features, bug fixes and installed on to the test server which needs to be tested by the test engineers for stability.
B...
Types of Servers/Environment
Production Server
It is a server which is accessed by the end users or the real users and it contains the real time data of the end users.
The application or the software is installed into the production enviro...
Hello Readers! In this Blog we will gain knowledge about the Good performance testing Tolls available in the Market, Performance testing tolls can be divided into two category :
1> Functional Performance tolls
2> load tools
Where functio...
Components of Java Programing
The Java programming contains the following components:
Keywords.
Identifiers.
Operators.
Literals.
Keywords
Keywords are the commands used in Java program, these are the reserved words.
In Java a...
Java Execution/Development Process
Java is a platform independent language.
There are three stages involved in Java execution/development process:
Development.
Compilation.
Execution.
Development
We write Java program in an e...
In any project routing plays an important role.In laravel 4.x we will define our routes in routes.php which is
in app/routes.php. In laravel 4.x the basic routes consist of a URL and a clousure callback.
Example: Basic Get Route
Route::ge...
In any project validation plays an important role.In laravel 4.x we have validation class which is used to
validating data and validating error message.
Basic Validation Example:
$validator = Validator::make(
array('name' => 'Dayl...
If you apply ListView inside ScrollView, then the items of ListView will not scroll. By default the scrolling of ListView will not work if defined inside ScrollView. To make the scrolling work, use the onTouchListener. Below is the code to make l...
As a tester you need to understand what the different challenges in testing stream as you will need to overcome the same
STLC process related challenges :
1.1 Limited time available for testing, Late engagement of testing team
1.2 Te...
Hi,
In this video blog, we will learn how we can use NSTimer in Objective C.
NSTimer class to create timer objects or, more simply, timers. A timer waits until a certain time interval has elapsed and then fires, sending a specified message ...
Hello Readers,
In this Blog I explain about the events and queue functions and how can we set interval between this events in jquery.
If you can use this then:
First, you can use queue() function (jquery function) to set time interval be...
"Adding multiple pins at same LatLng"
In this article we will see how to add multiple pins at the same Lat Lng in the Google Map.
While working with Google Maps, I faced a problem that, we are not able to show multipl...
Debugging means finding out the bugs.We all need to be sure that our applications is bug free, so here we have another tool for debugging our application that is "FIREPHP".
Firephp is a Firefox extension, similiar to FireBug. It enables you t...
Hello Readers..
In this blog I am giving an example that how can we create an build.xml file for performing clean,compile and run by using ANT.
<?xml version="1.0" encoding="UTF-8"?>
<project name="AntProject" basedir="." default...
As we know Every DB table has a corresponding "Model" that is helpful to interct with the table.
By using Eloquent we can implement query using MODEL NAME.
The basic query using Eloquent ORM in laravel 4.x are
All Query:
$users = User...
This video tutorial describes how to capture an image using device camera.To captured an Image using device camera use to following code:-
private static int REQ_CAMERA = 1001;
Intent takePictureIntent = new Intent(MediaStore.ACTION_...
This particular post will give you a overview of Single Table Inheritance And where to use it in Rails.
Single Table Inheritance is, as the name suggested, it is a way to add inheritance to your models. STI lets you to save different models i...
Adding Translation to a Rails Application
Hi friends, in my previous blogs related to internationalization of rails application, we have configured the i18N api and saw different types of methods to pass the locals, if you have not read thos...
Hello guys,
We are getting below error when we click on link in liferay 6.2 but now I have resolved this issue.
ERROR [http-bio-8080-exec-175][LanguageFilter:83] java.lang.IllegalStateException: Cannot create a session after the re...
Sometime we wish to track our user activity when user closed particular activity in app so we can follow this life cycle of Activity :
If you want to send status to your server when application closed or force quit then you should use override...
This Post ll help you to manage your alarm :
AlarmManager am=(AlarmManager)getSystemService(ALARM_SERVICE);
Intent alarmintent1=new Intent(MainActivity.this, AlarmReceiver.class);
PendingIntent sender1=PendingIntent.getBroadcast(SpeedMotor...
As we all know that Android works with dp size.
But what to do if we have px values and want to check corresponding dp value ?. Don't worry try this -
public static int pxToDp(int px, Context ctx) {
DisplayMetrics displayMetrics = ctx.getRes...
Usability testing is a Black Box testing technique. It is the best way to know how end/real users experience our application/website. Its a technique to know how user friendly our application is and whether real users feel comfortable with our ap...
Rails Internationalization : Setting locals from URL
In my previous blog, we looked in Setting rails locale from domain name, it was a good approach of detecting the desired locale from domain or subdomain, but sometimes you are not able to ...
Hello readers!
In this Blog we will gain knowledge about Accordion and how to use it . An Accordion is a vertically stacked list of items which allows users to toggle the display of sections of content. Each item(Header in this example) can be ...
Sharding is a method for storing data into multiple distributed machines. Database systems with large data sets and high throughput applications can challenge the capacity of a single server. To prevent this MongoDB Sharding concept used.
In S...
Hello All,
In this we will discuss about how to perform two phase commit in MongoDB.
Consider a example where funds will be transferred from one account to another. In a relation database approach we just subtract fund from account a and ad...
SDLC Models: The full form of SDLC is Software Development Life Cycle.
SDLC process is used by Programmer or Developers the most but Tester also follow the rule for testing the applications.
In IT company there are many SDLC model, but we ca...
With the help of java, I have created concat() string method. In the example given below, I have used '+' operator , StringBuilder and StringBuffer Class to join string in java. The string concat() method combines specified string at the end of t...
Rails Internationalization : Setting locals from Client Requests
Hi friends, in my previous blog, we looked into Setting the Locale from the URL Params. There are some more cases where we don't want to set the locales through URLs or domains...
Welcome friends. Today we are here to discuss the heart of jquery. Do you know who is the heart of jquery?. i think your answer is ready. Am i right?. Events are the heart of the jquery. If we say, events means jquery and jquery means events then...
Rails Internationalization : Setting locale from Domain Name
For translating your application to other language, you can set I18n.default_locale to your locale in application.rb or in initializers as I told in my previous blog Configuring i1...
What is ANT ?
Ant is a product of Apache. Ant is a tool, based on Java library and command lines. The main motive of ant tool is that it handle the method or process which are mentioned in the build files in form of targets and extension poin...
Software Test Life Cycle (STLC)
It is a step by step procedure to test the software which consists of all the testing activities.
STLC is a part of SDLC where as Defect life cycle is a part of STLC.
Below are the phases of STLC:
Requi...
Rails has a nice way to protect yourself from CSRF attacks through threatening HTML encoding from anything you write between <%= %>. But there is a caution, you want to render HTML from string so you need to tell rails that it should not es...
When we have to call a function with parameters there are basically two most generally known and easy to understand approaches for passing of parameters among all programming languages and these are pass-by-value and pass-by-reference. Ruby is pa...
Event binding is an advantage of jquery. In jquery we implement the event binding to handle the newly created elements on page. Jquery has provided different functions/events for different versions. Before discussing these types of functions/even...
Welcome to this quick discussion. Today we are going to discuss the basic concepts of jquery. Have you tried to use the getElementById without window load or document ready events? Do you know why does it not work without these events? Every time...
RAID or Redundant Array of Independent Disks is a method by which we store the same data in several places on different hard disks. By Implementing RAID we can Make Input/Output operation to overlap in good proportions and it also Improve the Per...
If you are going to write the Performance test cases, you required a different mind set to do that.
As a performance Tester you don't require knowledge of application You have only one mid set
i.e the performance of the application How can th...
Resource utilization is the metric we used in QA when we need to find the utilization of resource against total available time .To find the Resource utilization we need values like Total Available time , Actual Productive time&...
If you are getting corrupted invitation from outlook in your Thunderbird Mail. Please follow the below step:
a) On the top right just next to search box. You can see an option to explore Thunderbird options. Please click on this and go to Ad...
AuthenticationTokenProcessingFilter
First we need to make security context where we define our Authentication Entry point and a filter for processing the token. Configuration xml will look something like this:
<security:http realm="Authe...
Hello Readers;
If you want to remove the validation in cakephp from the Model dynamically then use the below one line code.
$this->validator()->remove('username');
The above validation completely remove all rules for a field.(Her...
Hello Readers,
The below are php accesss specifiers which are commonly used in php:
Public:
When you declare Public Method or function in PHP. It can be used as Publicly into the Class (so as to be seen by other people).
Public scope...