Pages

Friday, April 6, 2012

How to Add TestNG Plug-in to Eclipse for Selenium

Adding TestNG Plug-in to Eclipse for Selenium.


·         Run Eclipse.exe.
·         In Eclipse, Click at Help Tab in Menu bar.
·         In Help Tab Click at Install New Software. (Help -> Install New Software)
·         In Install window, Click Add button which is besides Work with Text Field.
·         In Add Repository Window, in Name field enter the Value TestNG and give the URL of the   TestNG Eclipse plug-in (http://beust.com/eclipse ) in Location field.
·         Click OK button.
·         Check the TestNG check box.
·         Click NEXT Button.
·         Again Click the NEXT Button.
·         Click Radio Button for I accept the term of the license agreement.
·         Click Finish Button.
·          It shows the Installing software Window after completion Restart Eclipse.
·         Add TestNG Jar file to the Eclipse. To add Jar file, download it from given URL.
·         Click this link you can get the TestNG Eclipse Jar file. http://testng.org/testng-eclipse-6.1.1.20110718_1435.zip
·         Unzip and Add the Jar file at Build path Libraries of the Project.
  • In BuildPath click at Configure BuildPath after  click at Libraries -> Click Add Library 
  • click at Junit and Click Next Button. Select Junit4 and Click Finish Button.
  • Click at TestNG and Click Next Button and Click finish Button.
  • Check Junit4 and TestNG libraries added at Libraries.
·         Restart the Eclipse
·         You can find, it was installed or not?   In Run -> Run As -> TestNG Test.

    Firefox ShortCut Keys

    Shortcut KeysDescription
    Alt + HomeGo to home page.
    Alt + Left ArrowBack a page.
    BackspaceBack a page.
    Alt + Right ArrowForward a page.
    F5Refresh current page, frame, or tab.
    F11Display the current website in full screen mode. Pressing F11 again will exit this mode.
    EscStop page or download from loading.
    Ctrl + (- or +)Increase or decrease the font size, pressing '-' will decrease and '+' will increase.
    Ctrl + EnterQuickly complete an address. For example, type computerhope in the address bar and press CTRL + ENTER to get http://www.computerhope.com.
    Shift + EnterComplete a .net instead of a .com address.
    Ctrl + Shift + EnterComplete a .org address.
    Ctrl + Shift + DelOpen the Clear Data window to quickly clear private data.
    Ctrl + DAdd a bookmark for the page currently opened.
    Ctrl + IDisplay available bookmarks.
    Ctrl + JDisplay the download window.
    Ctrl + NOpen New browser window.
    Ctrl + PPrint current page / frame.
    Ctrl + TOpens a new tab.
    Ctrl + F4 or Ctrl + WCloses the currently selected tab.
    Ctrl + Shift + TUndo the close of a window.
    Ctrl + TabMoves through each of the open tabs.
    SpacebarMoves down a page at a time.
    Shift + SpacebarMoves up a page at a time.
    Alt + Down arrowDisplay all previous text entered in a text box and available options on drop down menu.