Posts

Set1 - Java

 Error:  1.  package utils; public class test { public static void main(String[] args ) { // TODO Auto-generated method stub System. out .println(10/00); //error System. out .println(10/0.0f); //infinity } } 2.  package utils; public class duper { public duper ( int a ) {} } package utils; public class sub1 extends duper { public static void main(String[] args ) { new Super (); } } o/p: //Exception in thread "main" java.lang.Error: Unresolved compilation problem:   //Super cannot be resolved to a type // //at utils.sub1.main(duper.java:13) 3.  public static void main(String[] args ) { int a ;   a = a +1; System. out .println( "value of a is: " + a ); } o/p:  //Exception in thread "main" java.lang.Error: Unresolved compilation problem:  .  Garbage Collector: 1.  difference between system.gc and runtime.gc   Both are garbage collector but system.gc is gene...

Sample Test Strategy for a MicroService Project with APIs only

Image
          <Project Name> Test Strategy   Overview <Project Overview To be added> This is a backend micro services project. The project is developed using Java. The system will have integration with externals systems like common databases and application. The project will also build the APIs which will be used by other services i.e. we will also work as Provider. Purpose <Project Purpose> In Scope:   Following will be covered during the life cycle of the project: Testing Types  Sub-Type  Owner  Stage  Environment  Tool/Framework  API Testing PACT QA Sprint Testing <TBU> Rest Assured API Framework with PACT API Functional <TBU> E2E Testing Integration Testing QA RTL <TBU> ...

Selenium: db and excel data into maps

package learning; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.ResultSetMetaData; import java.sql.SQLException; import java.sql.Statement; import java.util.ArrayList; import java.util.HashMap; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.Map.Entry; import java.util.Set; import java.util.TreeMap; import org.apache.poi.ss.usermodel.Row; import org.apache.poi.ss.usermodel.Sheet; import org.apache.poi.ss.usermodel.Workbook; import org.apache.poi.xssf.usermodel.XSSFWorkbook; import com.codoid.products.exception.FilloException; import com.codoid.products.fillo.Connection; import com.codoid.products.fillo.Fillo; import com.codoid.products.fillo.Recordset; public class uploadFileinMap { @SuppressWarnings("resource") public static void main(String[] args) throws IOException, FilloException, ClassNotF...