Skip to content

Bruce Ng's software development blog

An archive of solutions of programming problems I have faced in my career

  • Personal Website
  • Art Portfolio
  • LinkedIn Profile

Month: May 2015

Verifying that a test case is valid

After doing a fix and prepare a test case, make sure to verify that the test case will fail in the old system before the fix is applied, and then the test case passes when used on a system that has the fix applied.

Be careful when tempering with test data as you may accidentally change the test data so that the test case always passes.

Author AdminPosted on May 29, 2015May 21, 2016Categories UncategorizedLeave a comment on Verifying that a test case is valid

Cache issues in browser using jQuery

To prevent caching of AJAX calls, either

use POST requests, POST requests are never cached.

use GET requests with caching disabled.

$.ajax({
type: “GET”,
cache: false,
url:”example.html”
}).done(function(returnedData){
//do something
});

Author AdminPosted on May 26, 2015May 21, 2016Categories UncategorizedLeave a comment on Cache issues in browser using jQuery

Pinpoint the problem based by disabling webparts in a page

If a page doesn’t show correctly on an older browser version. Try disabling various components or web parts in the page to pinpoint where the problem is.
Author AdminPosted on May 11, 2015May 21, 2016Categories UncategorizedLeave a comment on Pinpoint the problem based by disabling webparts in a page

Recent Posts

  • IndexOutOfRange error with Dictionary in C#
  • Debug jest tests
  • Using NVM
  • xUnit MemberData only returns one test
  • IIS Error: This configuration section cannot be used at this path …

Recent Comments

    Archives

    • December 2024
    • August 2024
    • July 2024
    • July 2023
    • April 2022
    • March 2022
    • February 2022
    • December 2021
    • November 2021
    • October 2021
    • September 2021
    • August 2021
    • June 2021
    • April 2021
    • November 2020
    • October 2020
    • September 2020
    • July 2020
    • June 2020
    • May 2020
    • April 2020
    • March 2020
    • January 2020
    • December 2019
    • November 2019
    • October 2019
    • September 2019
    • July 2019
    • June 2019
    • May 2019
    • April 2019
    • March 2019
    • February 2019
    • October 2018
    • September 2018
    • August 2018
    • May 2018
    • April 2018
    • May 2017
    • April 2017
    • March 2017
    • February 2017
    • December 2016
    • November 2016
    • October 2016
    • September 2016
    • August 2016
    • July 2016
    • June 2016
    • May 2016
    • April 2016
    • March 2016
    • February 2016
    • January 2016
    • December 2015
    • November 2015
    • October 2015
    • September 2015
    • August 2015
    • July 2015
    • June 2015
    • May 2015
    • February 2015
    • January 2015
    • December 2014
    • November 2014

    Categories

    • Problems
    • Software design
    • Tips and tricks
    • Uncategorized

    Meta

    • Log in
    • Entries feed
    • Comments feed
    • WordPress.org
    • Personal Website
    • Art Portfolio
    • LinkedIn Profile
    Bruce Ng's software development blog Proudly powered by WordPress