Skip to main content

Posts

Showing posts from March, 2019

Welcome To Learn Selenium

Welcome to Learn Selenium History: Selenium was originally developed by Jason Huggins, who was later joined by other programmers and testers at ThoughtWorks. It is open-source software, released under the Apache 2.0 license and can be downloaded and used without charge. The latest side project is Selenium Grid, which provides a hub allowing the running of multiple Selenium tests concurrently on any number of local or remote systems, thus minimizing test execution time. Selenium is a portable software testing framework for web applications. Selenium provides a record/playback tool for authoring tests without learning a test scripting language (Selenium IDE). It also provides a test domain-specific language (Selenese) [1] to write tests in a number of popular programming languages, including C#, Java, Groovy, Perl, PHP, Python and Ruby. The tests can then be run against most modern web browsers. Selenium deploys on Windows, Linux, and Macintosh platforms. Selenium automates bro

Logging with Log4J

Print logs in console # initialize root logger with level ERROR for stdout and fout log4j.rootLogger=INFO,stdout,fout # set the log level for these components log4j.logger.com.endeca=INFO log4j.logger.com.endeca.itl.web.metrics=INFO # add a ConsoleAppender to the logger stdout to write to the console log4j.appender.stdout=org.apache.log4j.ConsoleAppender log4j.appender.stdout.layout=org.apache.log4j.PatternLayout # use a simple message format log4j.appender.stdout.layout.ConversionPattern=%m%n # add a FileAppender to the logger fout log4j.appender.fout=org.apache.log4j.FileAppender # create a log file log4j.appender.fout.File=crawl.log log4j.appender.fout.layout=org.apache.log4j.PatternLayout # use a more detailed message pattern log4j.appender.fout.layout.ConversionPattern=%p\t%d{ISO8601}\t%r\t%c\t[%t]\t%m%n Print logs in a file # Define the root logger with appender file log = C:\\Users\\Nisum\\Desktop\\restassured log4j.rootLogger = DEBUG, FILE #