Posts

How to start / create a fresh JAVA Project into Eclipse IDE:

Image
  How to start / create a fresh JAVA Project into Eclipse IDE:  Click on Create New Java Project on Eclipse IDE: Enter Project Name CLick Next: you can find Java Src Tree structure Click FINISH Do right click on Java New Project -> Create a class Create a Java file : src-newProject- reverseString.java  (camelCase) Click Finish, you will find the Java class page: To enter the program

Performance Testing- Using JMeter

 J Meter 1. Download JMETER form apache jmeter 2. extract - open bin either run from jar or batch file. --------Start First Project------ 3. Create a Test Plan 4. Create a Thread Group(users) 5. Add a sampler (Http) 6. Add Listeners 7. To Run the Test -------Assertion----------------- 8.Response Assertion, Duration Assertion , Size Assertion , HTML Assertion , XML Assertion (To Check format) , Xpath Assertion (To check xpath on webpage). -------Type of report in JMeter-- 9. View reult in Table. 10. View result in tree. 11. Aggregate Report. 12. Graph results. 13. Summary Report 14. Simple Data Writer --------Tools available for recording JMtere----- 15. Blazemeter chrome plugin 16. Record the steps. 17. export as .jmx file 18. Import into JMeter 19. Add listners 20. Run and validate  ------------------------------------

Java Basics Interview Perspective

Image
Basic concepts: 1. Interface 2. Java String Concepts  3. Difference between StringBuffer & StringBuilder 4. Immutable Concept -------------------------------------------------------------------------------  1. Interface : The Interface = 100% ABSTRACTION method Methods are : public & abstract (BY DEFAULT) Variable : public , static & final (BY DEFAULT) And class implements multiple INTERFACE and MUST NEED TO define (implement) methods inside the class otherwise we get " COMPILE TIME ERROR "  2. SUPER Keyword (Super() ) The use of the SUPER keyword is to invoke the constructor of the parent class.  So as in the down example, the Object created for the SubClass itself will FIRST  invoke parent class NO ARG CONSTRUCTOR " SuperConst() " and then Child Constructor. public class SuperConst { SuperConst(){ System.out.println("The parent class constructor with No Args"); } SuperConst(String str){ System.out.println("The parent cl...

Java Program which Required for Testing Engineer

Image
----------JAVA Program starts here:------------- WAP to reverse a String without using inbuilt function. WAP  to reverse a String using inbuilt function. WAP to reverse words at ODD place in a sentence. WAP to check prime number (1-100) WAP to check the ARMSTRONG number. WAP to check the Fibonacci Series. A. WAP to print using DUPLICATES using HashMap   &   Duplicates Word (Using ForEach loop) WAP to do sorting of ARRAY USING for loop   &  Descending order The only Odd & Only Even WAP for GETTER & SETTER method. WAP to generate pattern. Pattern Problem- Star at ODD place  Pattern Problem- Triangle Pattern Problem- Reverse Triangle Pattern Problem - Pyramid WAP to prog to swap to Strings w/o using third variable. Singleton class example using getInstance() Program to return Min & Max Value from the Array  ------------------------------------------------------------------------------------------------ 1. WAP to reverse ...

Maven

Image
Are Getting issue in config Maven on window: To download Maven :  1. Go to the maven download: https://maven.apache.org/download.cgi Go to dropdown- select mirror Select the respective file to download wrt your machine like : I am doing from windows: Once the zip file download extract to the folder: Go to View Advance system settings -> Environment Variable :  Go to users variable -> New - >  Enter variable name = M2_Home  and variable value = C:\Users\Downloads\apache-maven-3.6.3-bin (1)\apache-maven-3.6.3 Click OK Again Click New Enter variable name = M2    and variable value =  %M2_Home%\bin Click OK Again Click on New Enter variable name = path    and variable value =  %M2% Click OK Now go command prompt To Check maven version : C:\User\Desktop>  mvn --version        or        mvn -v -----------------------------------------------------------------------------------------------...