HTTP to HTTPS Migration - A Testing perspective

HTTPS  is being used for communicating over a secure channel, The main features of HTTPS are Authentication, Encryption and Data Integrity. HTTPS Everywhere campaign has motivated the companies to make the data communication over secure channel. Google has decided to downgrade the rank of non-secure channels, this must be the other side of the motivation. Here we're discussing about the testing perspectives when your web application migrating to HTTPS.


The below 10 points you can considered as checklist for a HTTPS migration project. Here we go

1. Make sure that your web application functionality is working as expected

2. Ensure that all links are migrated to HTTPS

3. Make sure that there are no mixed content errors

4. Make sure that your SEO check list is successfully executed, which includes following items
       > Canonical, Alternative and Hreflangs langs
       > Updated Sitemap files
       > 301 redirects
       > Updated robots.txt
       > GA admin settings

5. Make sure that all e-mail signatures are updated to HTTPS

6. Make sure that all blog links are updated to HTTPS

7. Compare the page load speed with referenced values. List of tools are available here

8. Confirm that all 3rd party integration tools are updated

9. Ensure sure that all APIs and Web services are updated

10. Make sure that your CDN files are updated properly

Happy Migration..... 

Site speed tools

You need to consider all the aspects before releasing your website into production. Site speed is one of the critical factor. Sometimes we don’t always want to set up a whole performance testing suite but we need to know a rough idea about site speed of our application. Today we're discussing about the tools which help to give an idea about site speed.

1. Chrome Browser - Developer Tool
Chrome browser developer tools provides built in feature to know the site speed. Using "Audit" we can measure all of aspects of a websites like Performance, SEO, Accessibility etc

> As a first step take developer tool by pressing F12 and launch your website on same tab.
> Take Audit tab, then select "Performance" radio button and click "Run audits" button.

After measurement, the same tab displays the performance values with steps to be taken to improve the performance.  Here shows the results of testodev

Free website speed test from multiple locations around the globe using real browsers (IE and Chrome) and at real consumer connection speeds.Your results will provide rich diagnostic information including resource loading waterfall charts, Page Speed optimization checks and suggestions for improvements.

3. PageSpeed Insights from Google - 
PageSpeed Insights reports on the real-world performance of a page for mobile and desktop devices and provides suggestions on how that page may be improved. There are two scores are avilable in theire report, First one is Speed Score, Which gives an idea about site speed. Its values are Fast, Average and Slow Second score is Optimization Score, it measures the best practices and computes a score from 0-100. You need to achive more 80 to get the green signal. Page stats gives an idea about render-blocking resources. Finally it comes with Optimization suggestions. Here comes the values of testodev


How to Take Screenshot in Selenium WebDriver

Screenshots are essential for bug analysis, During automation results analysis it would be highly helpful. Here we're explaining how to take screenshots using Selenium Webdriver.

TakesScreenshot is a builtin method avilable in Selenium, which helps to take screenshots. When we invoke TakesScreenshot method, then it will convert Webdriver into screenshot.

getScreenshotAs method deals with creation of image file. There are different ways of capturing the image file like Entire page, Current Window, Visible portion etc.

For more details follow this link

Here comes the code for taking screenshot of browser window
import org.openqa.selenium.OutputType;
import org.openqa.selenium.TakesScreenshot;
import org.openqa.selenium.WebDriver;

public class MyClass {
 public static String driverPath = "D:/Technical/chromedriver_win32/";
 public static WebDriver driver;
 public static void main(String []args) throws Exception {
    System.out.println("launching chrome browser");
    System.setProperty("", driverPath+"chromedriver.exe");
    driver = new ChromeDriver();
    GetScreenShot(driver,"D://test.png"); }

  public static void GetScreenShot(WebDriver webdriver, String fileWithPath)throws Exception {
    TakesScreenshot scrShot =((TakesScreenshot)webdriver);
    File SrcFile=scrShot.getScreenshotAs(OutputType.FILE);
    File DestFile=new File(fileWithPath);
    FileUtils.copyFile(SrcFile, DestFile);}