What do you want to save?
Add Code snippet
New code examples
-
Java 2021-10-08 16:07:08
string code
// Java code to illustrate different constructors and methods // String class. import java.io.*; import java.util.*; class Test { public static void main (String[] args) { String s= "GeeksforGeeks"; // or String s= new String ("Geeks... Add solution -
Other 2021-10-07 09:07:04
why did you choose page object model
Pom basically Creating java classes for the each page of our application, and storing related webelements, and methods in their respective classes. Advantages of POM = First of all, it makes our code REUSABLE. I don't have to repeatedly locate web el... Add solution -
TypeScript 2021-10-06 14:43:07
command line arguments in java
class CommandLineExample{ public static void main(String args[]){ System.out.println("Your first argument is: "+args[0]); } } //Now follow these steps compile by > javac CommandLineExample.java run by > java CommandLineExample s... Add solution -
Java 2021-10-03 04:52:01
constructor vs method
Constructor doesn't have a return type and it's name must be same as the classname. Constructor is called automatically when a new object is created. It’s invoked implicitly. The Java compiler provides a default constructor if we don't have any con... Add solution -
Other 2021-10-02 10:26:04
api tools
Tools to send API request Postman -- Desktop client tool Curl -- Command line client tool RestAssured -- Java client library SoapUI -- Desktop client tool A lot of API documentation provide curl command for example when we run the request and Postman can... Add solution -
Other 2021-10-02 04:54:04
Cross Browser and Parallel Test
I achieve it with xml file. In TestNG is quite simple to do parallel testing. . First I create TestNG xml runner. Then I create suites or test tags in the xml runner. In these tag, I point to package or class I want to run. Then I add and option like par... Add solution -
Other 2021-10-02 02:22:03
how to run multi browser testing in testng
I achieve it with xml file. In TestNG is quite simple to do parallel testing. . First I create TestNG xml runner. Then I create suites or test tags in the xml runner. In these tag, I point to package or class I want to run. Then I add and option like par... Add solution -
Java 2021-09-30 17:42:03
pojo class
It stands for Plain old Java Object and basically we use it when we need to represent some data as Java object. So to that we need to create a Java class to represent it's data. For example: { "name" : "ABC", "gender : "... Add solution
Best helpers
Ranking is empty