If else program in Java

Posted Posted in Android, Apache, Automation Framework, Automation/QTP/Selenium Blogs, Jmeter, Others, questions, Technical blog, Travel, Trending, Uncategorized
If else program in Java import java.util.Scanner; class IfElse { public static void main(String[] args) { int marksObtained, passingMarks; passingMarks = 40; Scanner input = new Scanner(System.in); System.out.println(“Input marks scored by you”); marksObtained = input.nextInt(); if (marksObtained >= passingMarks) { System.out.println(“You passed the exam.”); } else { System.out.println(“Unfortunately you failed to pass the exam.”); } […]

Nested Java program loops

Posted Posted in Android, Apache, Automation Framework, Automation/QTP/Selenium Blogs, Jmeter, Others, questions, Technical blog, Travel, Trending, Uncategorized
Nested Java program loops import java.util.Scanner; class NestedIfElse { public static void main(String[] args) { int marksObtained, passingMarks; char grade; passingMarks = 40; Scanner input = new Scanner(System.in); System.out.println(“Input marks scored by you”); marksObtained = input.nextInt(); if (marksObtained >= passingMarks) { if (marksObtained > 90) grade = ‘A’; else if (marksObtained > 75) grade = […]

how to print alphabets using java programming

Posted Posted in Trending, Uncategorized, Wordpress
First Method: char cAlpha = ‘A’; do { System.out.println(cAlpha ); cAlpha ++; } while (cAlpha <= ‘Z’);   Second method: char cAlpha = ‘a’; while (cAlpha <= ‘z’) { System.out.println(cAlpha); cAlpha ++; } Third Method : class PrintAlphabets { public static void main(String args[]) { char chAlpha; for( chAlpha= ‘a’ ; chAlpha<= ‘z’ ; chAlpha++ ) […]

How to implement Multiplication program in java

Posted Posted in Android, Apache, Automation Framework, Automation/QTP/Selenium Blogs, Google adsense, Java, JavaScript, questions, Technical blog, Trending, Uncategorized
How to implement Multiplication program in java: import java.util.Scanner; class TableForMultiplication { public static void main(String args[]) { int i, j; System.out.println(“Enter an integer to display it’s multiplication table…”); Scanner in = new Scanner(System.in); i = in.nextInt(); System.out.println(“Multiplication table of “+i+” is :-“); for ( j = 1 ; j <= 10 ; j++ ) System.out.println(i+”*”+j+” = “+(i*j)); […]

How to connect sqlserver using QTP scripts

Posted Posted in Technical blog, Trending, Uncategorized
How to connect sqlserver using QTP scripts? Dim connectionMS, recordsetMS Set connectionMS = createobject(“adodb.connection”) Set recordsetMS =createobject(“adodb.recordset”) connectionMS.open”Driver={SQL Server};server=YourSqlServer;uid=YourUserName;pwd=YourPassword;database=dbname” recordsetMS.open “select * from tablename”,connectionMS databaseValue = recordsetMS.fields.item(0) msgbox databaseValue Set connectionMS = nothing Set recordsetMS = nothing

Annotation – TestNG’s test case priority

Posted Posted in Android, Apache, Automation Framework, Automation/QTP/Selenium Blogs, Cucumber Selenium, Excel macros and tips, Others, questions, Uncategorized
Annotation – TestNG’s test case priority  To schedule priority over multiple test cases, TestNG uses this coding feature called “annotation” e.g. @Test (priority = 1) @Test (priority = 2) etc in the code For quick summary on TestNG – please check my TestNG quick summary blog TestNG quick summary:

MDM – Mobile device management (MDM) & Master data management (MDM)

Posted Posted in Uncategorized
MDM – Mobile device management (MDM) & Master data management (MDM) Mobile device management (MDM) is a type of security software. MDM is used to manage , monitor, and secure mobile devices that are deployed across multiple mobile service providers,& multiple mobile operating systems. Master data management (MDM) is a method of enabling an enterprise […]

Performance testing vs Load testing vs Stress testing vs Endurance testing

Posted Posted in Uncategorized
Performance testing vs Load testing vs  Stress testing vs Endurance testing 1. Performance testing – The main purpose of Performance testing is to arrive the benchmark & baseline of the system behavior (e.g response time) under normal/moderate load. This test will help performance engineer  to analyse how does the application behave under normal conditions.   […]