Define in what ways you can customize TestNG report?

1 Answer

Answer :

You can customize TestNG report in two ways,

1. Using ITestListener Interface
2. Using IReporter Interface

Related questions

Description : Define what are the types of Listeners in TestNG?

Last Answer : The types of Listeners in TestNG are, 1. IAnnotationTransformer 2. IAnnotationTransformer2 3. IConfigurable 4. IConfigurationListener 5. IExecutionListener 6. IHookable 7. IInvokedMethodListener 8. IInvokedMethodListener2 9. IMethodInterceptor 10. IReporter 11. ISuiteListener 12. ITestListener

Description : Define what are the features of TestNG and list some of the functionality in TestNG which makes it more effective?

Last Answer : TestNG is a testing framework based on JUnit and NUnit to simplify a broad range of testing needs, from unit testing to integration testing. And the functionality which makes it ... annotations Support for data-driven testing Flexible test configuration Ability to re-execute failed test cases

Description : Why use TestNG with Selenium RC?

Last Answer : If you want full automation against the different server and client platforms, You need a way to invoke the tests from a command line process, reports that tell you Define what happened and flexibility in Explain How you create your test suites. TestNG gives that flexibility.

Description : Define what is Selenium and Define what is composed of?

Last Answer : Selenium is a suite of tools for automated web testing. It is composed of Selenium IDE (Integrated Development Environment): It is a tool for recording and playing back. It is a firefox plugin ... can be run parallel which helps in cutting down the time required for running in-browser test suites

Description : Define what are the advantages of Using Git Hub For Selenium?

Last Answer : The advantages of Using Git Hub for Selenium are Multiple people when they work on the same project they can update project details and inform other team members simultaneously. Jenkins can help you ... the project from the remote repository regularly. This helps you to keep track of failed builds.

Description : For Database Testing in Selenium Webdriver Define what API is required?

Last Answer : For Database Testing in Selenium Webdriver, you need JDBC (Java Database Connectivity) API. It allows you to execute SQL statements.

Description : Define what is the desired capability? Explain How is it useful in terms of Selenium?

Last Answer : The desired capability is a series of key/value pairs that stores the browser properties like browser name, browser version, the path of the browser driver in the system, etc. to determine the ... you want to run the test cases on a different browser with different operating systems and versions.

Description : Define what is Listeners in Selenium WebDriver?

Last Answer : In Selenium WebDriver, Listeners “listen” to the event defined in the selenium script and behave accordingly. It allows customizing TestNG reports or logs. There are two main listeners i.e. WebDriver Listeners and TestNG Listeners.

Description : To generate pdf reports Define what Java API is required?

Last Answer : To generate pdf reports, you need Java API IText.

Description : Define what is IntelliJ?

Last Answer : IntelliJ is an IDE that helps you to write better and faster code for Selenium. IntelliJ can be used in the option to Java bean and Eclipse.

Description : Define what are the challenges in Handling Ajax Call in Selenium Webdriver?

Last Answer : The challenges faced in Handling Ajax Call in Selenium Webdriver are Using the pause command for handling Ajax call is not completely reliable. Long pause time makes the test unacceptably ... as such AJAX application often use different encoding or serialization technique to submit POST data.

Description : In Selenium Define what are Breakpoints and Startpoints?

Last Answer : Breakpoints: When you implement a breakpoint in your code, the execution will stop right there. This helps you to verify that your code is working as expected. StartpointsStartpoint indicates the point from where ... when you want to run the test script from the middle of the code or a breakpoint.

Description : To enter values into text boxes Define what is the command that can be used?

Last Answer : To enter values into text boxes we can use command sendkeys()

Description : Define what are the steps to run automation using selenium?

Last Answer : The very basic steps are: Record the test steps using selenium-IDE. Modify the script according to the testing needs. Add validation points, Java Scripts, Time-out, etc.

Description : Define what does it mean to be “developer focused”?

Last Answer : We believe that within a software application's development team, the people who are best placed to build the tools that everyone else can use are the developers. Although it should be easy ... button in your favorite IDE and aims to work consistently no matter which browser implementation you use.

Description : Define what is the selenium’s recording language?

Last Answer : Selenium’s recording language is “HTML”.

Description : Explain Define what is Data-driven framework and Keyword driven?

Last Answer : Data-driven framework: In this framework, the test data is separated and kept outside the Test Scripts, while test case logic resides in Test Scripts. Test data is read from the external files ( ... application under test is documented in a table as well as step by step instructions for each test.

Description : Define what are the disadvantages of Selenium?

Last Answer : Disadvantages of Selenium: Limitation in terms of browser support (It runs only in Mozilla). Scripts written using Selenium IDE can be used for other browsers only if it is used with Selenium ... manual scripts like conditions and Loops for Data Driven Testing There is no option to verify images

Description : Define what is WebDriver?

Last Answer : WebDriver is a tool for writing automated tests of websites. It aims to mimic the behavior of a real user, and as such interacts with the HTML of the application

Description : Define what is Selenium IDE?

Last Answer : Selenium IDE is an integrated development environment for Selenium tests. It is implemented as a Firefox extension and has a recording feature, which will keep account of user actions as they are ... play back. Selenium-IDE also offers full editing of test cases for more precision and control.

Description : Explain Define what is the difference between find elements () and find element () ?

Last Answer : find element (): It finds the first element within the current page using the given locating mechanism . It returns a single WebElement findElements () : Using the given locating mechanism find ... )- To execute a method before this annotation is used, the test method must start with test@Before

Description : Define what tests can selenium do?

Last Answer : Selenium could do functional, regression, and a load of web-based applications.p>

Description : Define what is Object Repository?

Last Answer : An object repository is an essential entity in any UI automation which allows a tester to store all object that will be used in the scripts in one or more centralized locations rather than scattered all over the test scripts.

Description : Define what is the difference between Implicit wait and Explicit wait?

Last Answer : Implicit Wait: Sets a timeout for all successive Web Element searches. For the specified amount of time, it will try looking for element again and again before throwing a NoSuchElementException. It waits for elements to ... How up. Explicit Wait: It is a one-timer, used for a particular search./p>

Description : Define what are the four parameters you have to pass in Selenium?

Last Answer : Four parameters that you have to pass in Selenium are Host Port Number Browser URL You can use “submit” method on the element to submit a form- element. submit (); Alternatively, you can use click method on the element which does form submission

Description : Define what is heightened privileges browsers?

Last Answer : The purpose of heightened privileges is similar to Proxy Injection, allows websites to do something that is not commonly permitted. The key difference is that the browsers are launched in a special ... and also read/write its content without passing the whole AUT through the Selenium RC server

Description : Define what is the use of X-path?

Last Answer : X-Path is used to find the WebElement in web pages. It is also useful in identifying the dynamic elements.

Description : Define what is Selenium 2.0?

Last Answer : Web testing tools Selenium RC and WebDriver are consolidated in single tool in Selenium 2.0

Description : Define what is Object Repository? Explain How can we create Object Repository in Selenium?

Last Answer : Object Repository is a term used to refer to the collection of web elements belonging to Application Under Test (AUT) along with their locator values. Thus, whenever the element is required within ... objects can be stored in an excel sheet which can be populated inside the script whenever required.

Description : Define what is the difference between setSpeed() and sleep() methods?

Last Answer : Both will delay the speed of execution. Thread.sleep (): It will stop the current (java) thread for the specified period of time. It's done only once It takes a single argument in ... proxy, which sits between the browser and application under test and then masks the AUT under a fictional URL

Description : Define what is the difference between type keys and type commands ?

Last Answer : TypeKeys() will trigger JavaScript event in most of the cases whereas .type() won’t. Type key populates the value attribute using JavaScript whereas .typekeys() emulates like actual user typing

Description : Define what are the advantages of Selenium?

Last Answer : 1. It supports C#, PHP, Java, Perl, Python 2. It supports different OS like Windows, Linux and Mac OS 3. It has got powerful methods to locate elements (XPath, DOM, CSS) 4. It has highly developer community supported by Google

Description : Explain Define what is assertion in Selenium and Define what are the types of assertion?

Last Answer : An assertion is used as a verification point. It verifies that the state of the application conforms to Define what is expected. The types of assertion are “assert”, “verify” and “wait for”.

Description : Define what are the advantages of Automation framework?

Last Answer : Advantage of Test Automation framework Reusability of code Maximum coverage Recovery scenario Low-cost maintenance Minimal manual intervention Easy Reporting

Description : Define what is a framework?

Last Answer : The framework is a constructive blend of various guidelines, coding standards, concepts, processes, practices, project hierarchies, modularity, reporting mechanism, test data injections, etc. to pillar automation testing.

Description : Define what are the different types of navigation commands?

Last Answer : Following are the navigation commands: navigate().back() - The above command requires no parameters and takes back the user to the previous webpage in the web browser's history. Sample code: driver.navigate ... navigate to the specified URL. Sample code: driver.navigate().to( https://google.com );

Description : Define what is the difference between driver.close() and driver.quit command?

Last Answer : close(): WebDriver's close() method closes the web browser window that the user is currently working on or we can also say the window that is being currently accessed by the WebDriver. The command ... . Same as close() method, the command neither requires any parameter nor does is return any value.

Description : Define what are the capabilities of Selenium IDE?

Last Answer : Selenium IDE (Integrated Development Environment) works similar to commercial tools like QTP, Silk Test and Test Partner, etc. The below points describe well about Selenium IDE. Selenium IDE is a ... allowing the use of add-ons or user extensions that expand the functionality of Selenium IDE

Description : Define what are the steps to run automation using selenium?

Last Answer : The very basic steps are: 1. Record the test steps using selenium-IDE. 2. Modify the script according to the testing needs. Add validation points, Java Scripts, Time-out, etc. 3. Run the test. 4. View the result after the test runs completely analyze.

Description : Define what is the difference between assert and verify commands?

Last Answer : Assert: Assert command checks whether the given condition is true or false. Let's say we assert whether the given element is present on the web page or not. If the condition is true then ... e. any failure during verification would not stop the execution and all the test steps would be executed.

Description : Define what are the different types of Drivers available in WebDriver?

Last Answer : The different drivers available in WebDriver are: FirefoxDriver InternetExplorerDriver ChromeDriver SafariDriver OperaDriver AndroidDriver IPhoneDriver HtmlUnitDriver

Description : Define what are the different types of locators in Selenium?

Last Answer : A locator can be termed as an address that identifies a web element uniquely within the webpage. Thus, to identify web elements accurately and precisely we have different types of locators in Selenium: ID ClassName Name TagName LinkText PartialLinkText Xpath CSS Selector DOM

Description : Define what is an XPath?

Last Answer : XPath is used to locate a web element based on its XML path. XML stands for Extensible Markup Language and is used to store, organize and transport arbitrary data. It stores data in a key-value ... the entire page and thus enabling a user to find an element with the reference of another element.

Description : Define what is Selenium? Define what are the different Selenium components?

Last Answer : Selenium is one of the most popular automated testing suites. Selenium is designed in a way to support and encourage automation testing of functional aspects of web-based applications and ... Selenium Grid is used to distribute your test execution on multiple platforms and environments concurrently.

Description : Define what is Selenese?

Last Answer : Selenese is the language which is used to write test scripts in Selenium IDE.

Description : Define what are the limitations of Selenium?

Last Answer : Following are the limitations of Selenium: Selenium supports testing of only web-based applications Mobile applications cannot be tested using Selenium Captcha and Bar code readers cannot be ... can find numerous helping communities. User is expected to possess prior programming language knowledge.

Description : Define what are the different types of waits available in WebDriver?

Last Answer : There are two types of waits available in WebDriver: 1.Implicit Wait 2.Explicit Wait Implicit Wait: Implicit waits are used to provide a default waiting time (say 30 seconds) between each ... maximum time has elapsed. Unlike Implicit waits, explicit waits are applied for a particular instance only.

Description : Define what are the testing types that can be supported by Selenium?

Last Answer : Selenium supports the following types of testing: 1. Functional Testing 2. Regression Testing

Description : Define what are the benefits of Automation Testing?

Last Answer : Benefits of Automation testing are: 1. Supports execution of repeated test cases 2. Aids in testing a large test matrix 3. Enables parallel execution 4. Encourages unattended execution 5. Improves accuracy thereby reducing human-generated errors 6. Saves time and money

Description : Define what are the benefits of Automation Testing?

Last Answer : Benefits of Automation testing are: 1. Supports execution of repeated test cases 2. Aids in testing a large test matrix 3. Enables parallel execution 4. Encourages unattended execution 5. Improves accuracy thereby reducing human-generated errors 6. Saves time and money