1 What is the difference between Assert and Verify?
|The false condition, the next text case of the suite will be executed.||In case of false condition, the next test step of the same text case will continue.|
|There are two types of assets namely hard and soft asserts.||There are no categories for verification.|
It is a reference variable that is used to refer parent class objects. Also, the keyword super came into the picture with the concept of Inheritance. Whenever you create the instance of subclass, an instance of parent class is created implicitly which is referred by super reference variable.
Java for-each loop, findElements() & By.tagName(“a”) method. String manipulation in Java is more easy with the set of methods it has and it is crucial for test automation,
2 Use of javac and java.
Technically, javac is the program that translates Java code into bytecode (.class file) – an intermediate format which is understandable by the Java Virtual Machine (JVM). And java is the program that starts the JVM, which in turn, loads the .class file, verifies the bytecode and executes it. javac and java are the cornerstones of the Java programming language. All editors or IDEs rely on these tools for compiling and executing Java applications.
2 How to get the number of frames on a page?
Difference between arraylist and array.
|ArrayList is dynamic in size.||Array is static in size.|
|It is mandatory to provide the size of an array while initializing it directly or indirectly.||We can create an instance of ArrayList without specifying its size. Java creates ArrayList of default size.|
2 Have you use data structures in your project?
Explain your experience and skills set and then rate yourself at out of 10.
Selenese is the set of selenium commands which are used to test your web application. Tester can test the broken links, existence of some object on the UI, Ajax functionality, Alerts, window, list options and lot more using selenese.
1 Print data in IDE – echo
1 What are the different types of locators in Selenium? Types are locators are,
string a =””; string a= “”;
|JVMs are available for many hardware and software platforms||JRE is an acronym for Java Runtime Environment.|
|It is JVM which is responsible for converting Byte code to the machine specific code.||Along with Java binaries JRE also consist of various technologies of deployment, user interfaces to interact with code executed, some base libraries for different functionalities and language and util based libraries.|
Assert and Verify and WaitFor
|The First Name text box is actually an element present in the Registration page of Mercury Tours, not in the homepage.||Selenium IDE indicates the position of an element by measuring (in pixels) how far it is from the left or top edge of the browser window.||These are commands that wait for a specified condition to become true before proceeding to the next command.|
|We use the Assertion in the try catch block. Mostly, the assert command is used when the end result of the check value should pass to continue to the next step.||When the verifyTextPresent command was used on each of them, one passed while the other failed.||These are commands that wait for a specified condition to become true before proceeding to the next command|