Skip to main content

Posts

Showing posts from September, 2019

Groups in TestNG

Groups in TestNG:- It is used to logically subdivide the test case method, based on its usability.  to create a group, tesng provides "groups" attribute, and " beforegroups" and " aftergroups" annotation will be called for each grouping method. Example 1st:- package scs; import org.testng.annotations.*; public class TestNGExampleNew { @BeforeGroups("car")     public void bg1()     {            System.out.println("Car1");     }     @AfterGroups("car")     public void bg2()     {     System.out.println("Car2");     }    @Test(groups={"car"})    public void car1()    {    System.out.println("Car3");    }   @Test(groups={"car"})    public void car2()    {   System.out.println("Car4");    }   @Test(groups={"scooter"})    public void scooter1()    { ...

Create IDE Script For Register for Quiz

Step 1st:- Open Selenium IDE Step2nd:- Set URL Sample Command You can See this             

Operator in Python:-

The operator in Python:- It is used to perform operations using operand, the operand can be variable, constant, and literals. a=10  # a is an operand A=(10)  #A is constant 10     #10 is the literals Operator has been defined as a predefined function . for example  if we call +,- operator then + has been defined as a  __add__()  ,- defined as __sub__() This operator type function is called magic function in Python. Python provides seven different types of operators:- 1 Arithmetic:-    +,  - ,  *,  /  ,  //  ,    ** /   true division  4/3   1.33 //  floor division  4/3  1   it provides least integer part and removes the fractional part a=5 b=2 c= a/b  2.5  true division d= a//b  2    floor division ** is is for power  3**2  =9 2 Conditional:-    It is used to check the condition-...

User Input Operation in Java Language?

1  Using System.in                          java.lang                              System    PrintStream                         InputStream   print()                                    read()   println() System.out.println(); out is the reference variable of PrintStream Class System.in.read() :- in is the reference variable of InputStream Class. read() has two major limitation 1)  throw Exception 2)  return byte data for single char these problem  has been solved by Scanner class because Scanner convert input data into Object pattern. Scanner   sc = new Scanner(System.in); this class provide predefine method to typec...

Input and Output in Python:-

Python provides a pre-defined method to implement Input/Output Operation 1 input():-     this method is used to take input from users using keyboard.we can pass the message as a parameter into input(). var = input(message) By default input() return string type data, we can convert it into the integer. Program of Addition with input() a = input("enter first number")  # "2" b = input("enter second number")  # "3" c=a+b   # "2"+"3"  23 print(c) this will provide 23 results because 2 and 3 will be concatenated hence to perform addition, we will typecast string type data to the integer type. int():-  String to Integer float():-  String to Float str():-   Int ,float to String Now the addition program will be implemented into this pattern:- a = int(input("enter first number"))  # 2 b = int(input("enter second number"))  # 3 c=a+b   # 2+3  5 print(c) after execution, the resul...

Naming convention in java

Java provides four different types of Cases to write the name 1 Lower  Case:--    variable,single word method name,package name,subpackage name    2 Proper Case:-  first char will be in caps and remaining will be in small   Classname,Intefacename 3  Upper Case:-  all char will be in caps      Constant name 4  Camel Case:-    first word will be in lower case and the second word will be in the proper case                               void displayHello()                                {                                }                               void displayStudentInfo()   ...

What is Automation Testing?

Automation Testing:- It provides automation tools to test application .automation tool contains a test script to implement the testing operation. It provides better accuracy, performance, and quality control as compared to manual testing. Less resource and Less time frame is the advantage of automation testing. We will use the Test script to test application functionality.  Test script uses programming languages to create this. Automation Testing is mainly used to perform functional testing and regression testing because regression testing takes more time to implement a testing operation manually. Important Automation Tools:- 1 Selenium 2  QTP 3 LOAD RUNNER 4 JMeter 5 Appium 6 Cucumber ...................................................................................................................................................................... What is Selenium? .....................................................................................

Software Testing Introduction

What is Software Testing? It is the most important phase of SDLC(Software development life cycle) which provide quality assurance and quality control to developed or developing a software application. Software testing completely depends on SRS(Software Requirement Specification)  , It will contain the complete requirement of an application. The testing team will cross-check the actual result of an application from the expected result. If it will be matched then testing will pass otherwise testing will be failed and render to the development team again and then re-testing will be performed until bug will resolve. when the testing team will finalize the product quality then it will be delivered  to end users. Every company has a QA team to test the application. QA means QUALITY ASSURANCE Profile of QA 1 Quality Analyst 2 Quality Manager 3 Quality Lead 4 SR. QE   (Quality Engineers) 5 QE  6 JR. QE  or Software Tester ...............

Generic Class In Java

  Generic Class In Java:- If we want to create a class that can accept common type data as a class argument and method argument then we can create a Generic class. It is used to provide type safety features to classes and methods both and reduce program code to declare multiple type method. it is similar to template in c#, we can provide flexbility to class and methods to use Generic. Example of  Generic Cass In java:- class Ope<T> {  T obj;   Ope(T obj)   {      this.obj=obj;   }        T getObject()   {       return this.obj;   }  } class OpeMain {    public static void main(String args[])    {        Ope<Integer> o = new Ope<Integer>(10);        System.out.println(o.getObject());        Ope<Float> o1 = new Ope<Float>(10.23F);        System.out.println(o1.get...

Function or Procedure in Python

Function or Procedure in Python:- It is used to subdivide the program based on different sub-routine. The function will be defined by def keyword in Python. def Functionname():    statements    ... Functionname()  #call to function Type of Function:- 1  Default:- we can not pass any parameters to default function, Input variable will be defined under function block. 1.1.1  Without return statement:-  This function will display output under method definition def Functioname():     statements     statements 1.1.2  With return statement:- This function will return output data from the method definition Def functionname():     Statements     Statements     return statements data = functionname() //Program of Default With ReturnType and Without ReturnType def add():     a=int(input("enter first number"))     b=int(input("enter second number"))...

Collection Framework Tutorials in JAVA, ArrayList, Vector, Set, Map, etc

Collection Framework in JAVA:- The collection is the enhancement of array. It provides a set of interfaces and classes to store data dynamically. Collection Framework  Tutorials in JAVA, ArrayList, Vector, Set, Map, etc:- The collection framework is used to store a collection of similar and dissimilar datatype both, we can store elements dynamically without providing size. it will be automatically managed according to inserted elements. Collection Objects store data using dynamic memory allocation and contain common datatype values .means it solves the limitation of the array for datatype and fixed in size problem. Java provides a collection framework using Set of Interfaces, Classes, and Methods to provide Collection Object according to different functionality. .......................................................................................................................................................... Iterable Interface:- It is the base interface of all Collection I...

Array in Javascript | What is Array in Javascript

 Array in Javascript | What is Array in Javascript Array: it is a primary data structure of JavaScript that is used to store collection of elements using proper sequence. it provide better data arrangement for one dimensional and multidimensional structure. Syntax: let identifier = [item1,item2,item3,...] console.log(item1[0]) Advantage:- 1) it contains multiple values under single variable that reduce code complexity. 2)  array store element into proper sequence hance we can easily search and sort the data. 3) reduce extra memory space. Disadvantage: 1) if list is large then array provide more time to search the element because it search by index. 2) array size is fixed means it can be increased or decreased. Create First Program 1) Declare and traverse elements of Array: let arr = [ 12 , 23 , 45 , 78 , 79 , 11 ] for ( let i = 0 ; i < arr . length ; i ++)     {         console . log ( arr [ i ]);     } for ( let item of arr ) ...