All Blogs
Written by Kiprosh, team of passionate and disciplined craftsmen turning your ideas into reality.
Kiprosh
is now part of
LawLytics
Written by Kiprosh, team of passionate and disciplined craftsmen turning your ideas into reality.
Performance Testing Process Below is a generic performance testing process 1. Identify your testing environment i.Know your physical test environment, production environment and what testing tools are available. ii. Understand details of the hardware, software and network configurations used during testing before you begin the testing process. That will help testers create more efficient tests. It will also help identify possible challenges that testers may encounter during the performance testing procedures. 2. Identify the performance acceptance criteria – i. This includes goals and constraints for throughput, response times and resource allocation. ii. It is also necessary to identify project success
PJAX Related performance improvements To know about PJAX [(Click Here)(Pjax Railscast)][1] Post from Kavita: [How to PJAX][2] Pjax is a great solution when we want to do partial refreshing of page at the same time maintaining the history of user navigation, But it has few issues when the app grows Basically PJAX works like this, Issuing a PJAX request to refresh the section of the page( eg: #conainer). Basically it fires an html ajax. Rails server handles the html request and renders the complete html page. These html template is parsed by the middleware, which removes the
Rails provides three types of caching techniques: page caching action caching fragment caching The rails_guides_on_caching is the best place to know how it works. This article is to demonstrate fragment caching the Rails Way with various data-stores and clearing those cached fragments on ActiveRecord callbacks on CRUD operations. Rails ActiveSupport::Cache::Store is responsible to do all the read and write operations. 1. The setup By default caching is disabled in rails. You will find the following config commented out in production.rb # Use a different cache store in production # config.cache_store = :mem_cache_store You
What is Redis? Redis is an open source (BSD licensed), in-memory data structure store, used as a database, cache and message broker. Why should we use Redis? By default, Rails uses the database to cache internal application data which can be expensive to generate (menu trees, views, filter results, etc), and to keep cached page contents. Since the database also handles many queries for normal page requests, it can create a bottleneck and increase load-times. Redis provides an alternative caching backend for Rails, taking that work off the database, which is vital for scaling to a larger number of logged-in
Example Testcase: Create a script to check login functionality of Gmail. Steps followed: 1) Open Google. 2) Click on Sign in 3) Enter Username and Password. 4) Submit Creds. 5) Check if the user is Signed In Script: import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.util.concurrent.TimeUnit; import org.apache.poi.hssf.usermodel.HSSFWorkbook; import org.apache.poi.ss.usermodel.Cell; import org.apache.poi.ss.usermodel.Sheet; import org.apache.poi.ss.usermodel.Workbook; import org.junit.*; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver;
WebDriver Basic Syntax: 1. Creating New Instance of Firefox Driver: WebDriver driver = new FirefoxDriver(); //Above given syntax will create new instance of Firefox driver. 2. Command to Open URL In Browser: driver.get("http://www.kiprosh.com"); //This syntax will open specified URL in web browser. 3. Clicking on any element or button of webpage: driver.findElement(By.id("submitButton")).click(); //Above given syntax will click on targeted element in WebDriver. 4. Store text of targeted element in variable: String dropdown = driver.findElement(By.tagName("select")).getText(); //This syntax will retrieve text from targeted
[better_errors][1] is a Rack middleware that replaces the default standard rails error page with a more useful one. The default Rails error page is also useful, but there is so much output that we don’t usually need and also there is a lot of other things we might need to see. The features of better_errors gem are awesome: Full stack trace Source code inspection for all stack frames (with highlighting) Local and instance variable inspection Live REPL (Read-Eval-Print Loop) on every stack frame In this local and instance variable inspection is so useful. We can immediately
WebDriver Basics and Setup instructions A: What is WebDriver? • WebDriver is a web automation framework that allows us to execute our tests against different browsers, not just Firefox (unlike Selenium IDE). WebDriver supports Firefox, Chrome, IE, Safari and Opera. • WebDriver supports web as well mobile application testing so we can also test mobile applications (IPhone or Android). • WebDriver also enables us to use a programming language to create our test scripts (that is not possible in Selenium IDE). • We can now use conditional operations like if-then-else or switch-case. We can also perform looping like do-while. • Following programming languages are supported
In Agile, writing test cases can be little different as compared to other methodologies. We never get entire complete functionality to test because we build the functionalities in iterations and only part of the functionality is delivered in each Sprint (aka iteration). So now whenever any Story is delivered in any Sprint. First thing a Tester must do is request the Programmer for a short Knowledge-Transition (K.T) session regarding this story. And we should cover the following points during the discussion: 1- What should be tested? 2- What should NOT be tested? 3- Any high risk areas? 4- Take
80% of the First Fortune 500 companies rates Work Life Balance as the most important workplace attribute. They found that employees who feel they have good work-life balance work 21% harder than those who don't. Here are 4 Components of Work Life Balance which may help you to get the desired results. Self Management – Sufficiently managing yourself can be challenging, particularly getting proper sleep, exercise, & nutrition. If you do not manage yourself, you are letting others have control of your life. It means becoming caption of your own ship; no one is coming to steer for us. Time Management