Month: December 2014

Our New Year Gift for Our-Self in 2015

December 30, 2014

We want to say goodbye to this fantastic year,with the idea that, what can be our best gift to no-one but to our self.In this festivity times,most of us spend our time to think of gifts for other people but What about gifting ourselves.It is bit off the way topic on this forum, but we […]

Read More

Log4j Configuration file

December 29, 2014

After executing our basic test case using logger in log4j, we would modify it, to include “Appender” and “layout“ objects by implementing “Configuration file” in our code. What is Configuration file?Configuration files are used to configure settings of log4j file. This can bewritten in XML or in Java properties (key=value) format.Example:-Using Basic configuration file in […]

Read More

First Test Case using log4j

December 24, 2014

After installation and basic overview of log4j, we are implementing log4j in our first test case.Here we would be configuring log4j pro-grammatically but recommended approach is to use it manually by using configuration file.Also we would be utilizing the main components of log4j i.e. Logger,Appender and Layout.Lets go step by step. Log4j components Implementation:-Step1:-Creating a new logger:–Logger logger […]

Read More

Install Log4j in Eclipse

December 24, 2014

We are done with basic introduction to log4j, now lets make our setup ready to work with log4j in selenium.Download  Log4j:-Step1:-Open the link:-Note:- we have used the older version of log4j1.2x in our example code, New version of  http://logging.apache.org/log4j/2.x/download.html is also available.Step2:-Click on the below link  log4j zip file link Step3:-Click on the Apache Download Mirrors link log4j […]

Read More

Log4j introduction in Selenium

December 24, 2014

What is Log4j?Log4j is a Java library,which is used in logging.  Log4j came into existence in 1996, as an initiative by SEMPER group to create a tracing API. Log4j is an open source tool and licensed under Apache Software License. log4j At its most basic level, we can imagine this as a replacement for System.out.println(sysout) statement in our […]

Read More

JavaScript Questions-(Part-2)

December 23, 2014

Prepare well to crack Interview’s 1.What is the functionality of DOM?2.Tell different ways to refresh the page?location.reload()history.go()window.location.href3.How to assign value to ViewState?ViewState.Add(“Name”,”UFT”);ViewState[“Name”] = “UFT”;4.What is the output of JS Code?var title=”User Friendly Techy Help”;var char = title[13];alert(char);5.How to make this string capitalize “UFT”;6.What will be the output of JS Code?var str = new String(“User Friendly […]

Read More

Executing Failed TestCases in Selenium using TestNG

December 23, 2014

Scenario:-We want to re-run only the failed testcases in selenium, rather than running the entire suite.Approach:-Every time tests fail in a suite, TestNG creates a file called testng-failed.xml in the output directory. This XML file contains the necessary information to rerun only these methods that failed, utlizing this we can easily rerun the failed tests […]

Read More

Skip Selenium TestCase Run using TestNG

December 23, 2014

Scenario:-We have a test case in the test set, which is not ready for testing and we wont this test case to be disabled while Selenium is executing the complete test suite.Solution:-We can disabled the test case in TestNG using enabled property.Syntax@Test(enabled=false)By default it is enabled= trueCode:-XML file:- <!DOCTYPE suite SYSTEM “http://testng.org/testng-1.0.dtd” ><suite name=”Suite”> <test […]

Read More

Implement ReportNG in TestNG

December 23, 2014

What is ReportNG?ReportNG is a reporter add-on for TestNG that implements the report listener of TestNG. ReportNG reports provides better user interface(look and feel)compared to the original HTML reports. To generate a ReportNG report we have to add the reporting class to the list of listeners of TestNG while executing the tests. Lets implement this in […]

Read More

AngularJS $watch() ,$digest() and $apply()

December 22, 2014

This post is meant for novice AngularJS programmers to enlighten them with basic comprehension of how data-binding works. To deep-dive into data-binding, you need a clear vision of how $watch(), $digest(), $apply() and dirty checking works.Lets go step by step on this topic.Do folow us on FB page, Twitter or G+ for more updates and learning.“It is not about doing so […]

Read More