TestNG: org.testng.TestNGException: java.lang.NullPointerException

Almost the entire day i have spent cracking this issue, and when in the end i was able to solve it by myself after searching on the whole internet, i found my self to be in an awkward situation as the fix was as simple as changing the tag (suite ) from Suite to suite… you see what life can become when you don’t follow the case sensitive thing šŸ™‚

Check the below link for the quick video that i have created to show the issue and how you can overcome it…

TesnG Nullpointer Issue

Post it in the comments, if you are facing any issues on the TestNG.xml file run.

Shut those annoying pop-up ads

Well, i spend most of time searching for various things on the internet. ThisĀ attracts a lot of crappy websites, whose sole reason is to bombard you with all those pop-ups. Especially sites like Crictime.com, where iĀ spend most of my time when there’s some interesting match going, like the Ashes šŸ™‚

One thing that you will immediately observe is by the time you get to watch the video (from the time you launch the site), it will beĀ lunch/ tea break. Yeah, crap! I have looked for various options on the internet, but was mindful of not downloading just any free tool/ extension as that will unnecessarily bring some kind of adware to my system (by the way have invited many of those in the past, Lesson Learnt šŸ™‚ ). The solution that am going to tell may not be unique, but will help solve the problemĀ immediately. Just two steps, by the way this is only for the chrome browser as i only use chrome :).

1. Install ABP (Ad-Block Plus) Chrome extension.

2. Install Pop Block ProĀ Chrome extension.

That’s it! You don’t need any more softwares.

Note: Sometimes you may need to have to see pop ups for some of the sites you are aware of. You can whitelist them adding to the list of websites that should allow pop-ups in both ABP and Pop Block Pro.

Options for Installing the WebEx Extension on Chrome Browsers

Have been trying to find some solution of late for installing the WebEx Chrome extension, but always used to get “Try Again” (in red) and it used to put me off. The only other solutions i adopted was to go back to IE or Firefox and try to open the WebEx recorded videos. But now found the solution directly from Cisco WebEx which resolved my problem.

The below guide should help you resolve this issue. Let me know if you are still facing any issues.

WebEx_Chrome_Extension_Installation_Guide

Apache Ant API has not been generated, So Apache Ant API Documentation Not Available!!!

I was really disappointed to see that Apache Ant API documentation is not available in the Apache API site.

Apache Ant API has not been generated

If you see this page online atĀ ant.apache.org, it is not a bug, but on purpose. We do not provide an online version of the API docs, they are included with all our distributions.

Ant’s manual and API documentation is part of theĀ binaryĀ distributions or available as a separateĀ archive.

Continue reading

Fuze Hangout Today, 01/16/2014 @ 09 PM EST

Thank You All For Showing Interest In This Program.

I have to reschedule the Fuze meeting to today because i forgot to mention the time in my last post and there was quite a bit of confusion. Please join this meeting, details given below on 01/16/2014 @ 09 PM EST.

————–
Meeting URL
http://fuze.me/22826283

Toll / Intl #: +1 (201) 479-4595
Toll free #:
Meeting number: 22826283
————–

Please let me know if you have any questions.

Thanks,
Khaja

Quit() vs Close() in Selenium WebDriver

I have been seeing a lot of questions everywhere and want to discuss about Quit() vs Close()

Close()

Use the following code.

//initiates the FirefoxDriver
WebDriver driver = new FirefoxDriver();
//Opens the Google Page
driver.get("http://google.com");
//Once on the Google page right click on any link (say images) and open it in a new tab
Thread.sleep(20000l);
//Now we have two browser windows opened with this webdriver instance. So when driver.close() is called it will
//close only the parent browser window, it will not close the new tab window which we opened.
driver.close();

Quit()

Use the following code.

//initiates the FirefoxDriver
WebDriver driver = new FirefoxDriver();
//Opens the Google Page
driver.get("http://google.com");
//Once on the Google page right click on any link (say images) and open it in a new tab
Thread.sleep(20000l);
//Now we have two browser windows opened with this webdriver instance. So when driver.<del>close</del>quit() is called it will
//close all browser windows, it will close both of the opened browser windows associated with the driver object..
driver.quit();

Thanks,
Khaja