What is Context?

What-is-Context

Context: It is nothing but current state of object or application. Typically you call it to get data regarding another part of your program (activity & package/application).

You can get the context by writing below code.

  • getApplicationContext()
  • getContext()
  • getBaseContext()
  • this

There are two type of context

  • Application Context
  • Activity Context

Application Context:

Application context is related to the application’s life cycle and it will be same whole application.When ever we use toast messages we can use application context or activity context  because toast can raised anywhere in application

Activity Context:

Activity context is attached to Activity life cycle and can be destroyed once activity destroyed.If we want to start new activity we must use activity context

ClassName.this:

the above line is an Activity which is obviously a Context.. this is used when you create some Alert Dialogs… At some places its compulsory that you use Activity Context…

Intent i =new Intent (MainActivity.this,Second.class);

startActivity(i);

getApplicationContext():

It will return the context  of entire application.We will use getApplicationContext if we need a context tied to the lifecycle of entire application not just current activity.

Toast.makeText(getapplicationContext(),”this is toast”,Toast.Length_Long).show();

getContext:

It will return the context of the current view.Mostly we use this inside of the fragments.

getContext:

If you require access to a Context from inside another context, you use a ContextWrapper. The Context alluded to from inside of the fragments

getBaseContext:

If you require access to a Context from inside another context, you use a ContextWrapper. The Context alluded to from inside that ContextWrapper is accessed via getBaseContext().

Android training in hyderabad

kosmik provides Android training in Hyderabad, we are providing lab facilities with complete real time training & 100% job assistance will be there

MANUAL TESTING

 

  1. In How Many Ways Software Companies do Business?
  2. How Service Based Companies do Business?
  3. How Product Based Companies do Business?
  4. Is There any Much Difference  for a Tester to Work in  Service  Based  and Product Based  Companies
  5. How a Product will Become Successful in the Market
  6. Define Project and Product in Your own Words
  7. As a Tester what you will do in Service Based and Product Based                                      Companies
  8. Tell me Some Examples   for  Project and Product
  9. Define Quality in your own words
  10. How any Company can grow successfully?
  11. Why we need to deliver a quality product?
  12. What is the ultimate  goal of any company and how to achieve it
  13. What is testing?
  14. Why we need to do testing?
  15. If testing is not done what will happen?
  16. How can you say any software application is a quality application?
  17. What is a defect?
  18. Who will find defects and who will rectify defects?
  19. Explain what will happen after rectification of defect?
  20. Why any company is there in this world?
  21. Why customers need software?
  22. In how many ways customer approach   software companies?
  23. How customers generally finalize and select Software Company?
  24. Explain the bidding process in your own words
  25. How software companies get projects ?
  26. What is the importance of software now a days explain with some examples
  27. How much % of business now a days depending on software’s ?
  28. If existing softwares does not work what will happen?
  29. What is the first activity in the software company after getting a new project?
  30. What is the purpose of kick off meeting   ?
    1. Who will involve in KOM
    2. What is the need of domain Experts involvement in KOM?
    3. What is domain?
    4. What is the need of Customer Representative in KOM?
  31. Why they call this meeting as KOM? Is this the only meeting called as         KOM?
    1. On what basis project manager will be selected?
    2. Once project manager is selected what he will do?
    3. What is PIN? & what is the purpose of it?
    4. Who will prepare PIN? &for whome it will be sent?

 

  1. Explain what business analyst will do in initial phase?
  2. What is the use of template in Software Company?
  3. Explain advantage of prototype?
  4. If at all, customer gives any extra requirement’s then who will handle that & how he will handle it?
  5. Who is the author of requirement document?
  6. What is the name of outcome document of initial phase in your company?
  7. Which document will be the outcome of initial phase?
  8. Basically the outcome document of initial phase is prepared based on?
  9. What is the input document of analysis phase?
  10. What are the things which are generally analyze during analysis phase?
  11. If at all, feasibility study is not done? What will happen?
  12. What is the use of tentative planning? When it many be changed in future?
  13. Who will decide the technology information to develop the project?
  14. If customer suggests the technology our company will directly accept it or not?
  15. Why the environment should be confirmed or finalized in the initial stages only?
  16. What do you mean by requirement analysis?
  17. What is the outcome document of analysis phase?
  18. Who is the author of SRS?
  19. What is the input document for design phase?
  20. What is high-level design?
  21. What is low-level design?
  22. Why high-level & low-level design need to be done?
  23. What is the language used by the chief architect during design?
  24. What does T.D.D contains?
  25. What is Pseudo code? What is the use of it?
  26. What is GUI? What is use of it?
  27. What is the Software application?
  28. What is the responsibility of technical lead in the design phase?
  29. What is the input document of coding phase?
  30. How the developer will develop the actual code?
  31. What do you mean by coding standards & how they are useful?
  32. What is the outcome document of coding phase?
  33. What the developers will understand from T.D.D & how it is useful for developers while developing the actual code?
  34. Is the source code document, input for testing phase?
  35. What are 2 inputs testing department receives?
  36. While understanding the requirements if at all testers get any doubts, in how many ways they will clarity them? Explain?
  37. After understanding the requirements what testers will do?
  38. What do you mean by test case?
  39. After writing the test cases, what we will receive from the development department?
  40. Once first build is received, what testers will do?
  41. What is the document used for sending the defects to the development department?
  42. What is a defect?
  43. Once next build is released, what testers will do?
  44. If at all some defects are not rectified what testers will do?
  45. What is the outcome of testing phase?
  46. What is the need of testing?
  47. What are the things the tester will check during testing?
  48. If test engineer need to test something, first he need to understand what?
  49. Generally testing process starts with———————
  50. Who will deliver the application & how they will do it?
  51. How many types of maintenance are there?
  52. Whom we call as onsite employees?
  53. Can customers can also go for own maintenance?
  54. Who will do unconventional testing?
  55. Who will do conventional testing?
  56. What is the main goal of conventional testing?
  57. What is the main goal of unconventional testing?
  58. In a software company, how many department will take are of quality? &          what are they?
  59. How many methods (or) techniques are there in testing?
  60. Who will do gray box testing?
  61. Why so many companies do not encourage gray boxing testing?
  62. Why companies separately maintaining? Black box testers & white box testers?
  63. In how many stages testing need to be conducted & what are those stages ?
  64. Who will do unit level testing?
  65. In module level why black box test engineers will not concentrate on              structural part?
  66. To integrate the modules what developers will develop & who will test  them?
  67. Generally what approaches are followed to integrate modules?
  68. Why big bang approach is avoid by many companies?
  69. Is there any particular situation   where we need to go for hybrid   application?
  70. What is stub & driver?
  71. Whenever any mandatory module    is missing will you wait till the     module is developed if no then   explain how will you proceed?
  72. What is a system?
  73. Who will do what in system level    testing?
  74. What is need of system integration testing?
  75. Is Only system integration testing    conducted in system level testing?
  76. Who will do user acceptance level    testing?
  77. What is purpose of user acceptance    level testing whenever black box     test engineers feel that system is    working fine in system level itself?
  78. In which situations we suggest stand alone environment?
  79. On what basis we can suggest an environment to the customer?
  80. What are advantages of client server environment?
  81. What are drawbacks of client server environment?
  82. When ever web environment is looking better then client server then in which   situations we go for client server    environment?
  83. When ever we are using client server environment then what is need of web environment?
  84. When ever distributed environment is similar to web environment then what is need of distributed environment?
  85. What is thin client?
  86. What is thick client?
  87. Why both business logic & database     logic are not maintained in single servers?
  88. In web environment where we find     the business logic? What is advantage of having there?
  89. Why test engineer need to have test     environment knowledge?

 

  1. What do you mean by model?
  2. Will all the companies follow the same model?
  3. All the company will follow same model for all the projects? If no? Explain?
  4. Explain difference between V-model & waterfall model?
  5. In which situation generally they will go for prototype model?
  6. How many types of proto types are developed what are they?
  7. Tell me 1 major drawback of prototype model?
  8. Explain verification, validation in your own words?
  9. During validation also, verification will be conducted? Say yes or No
  10. Validation mainly focus on———–
  11. Verification mainly focus on ———
  12. What do you mean by port? Port testing?
  13. What is build acceptance testing & generally what we check in that?
  14. Without doing build acceptance testing, if we accept the build, what problems we many face?
  15. Will we do build acceptance testing after every build is released, while doing is released?
  16. What is build acceptance testing & generally want we check in that?
  17. Once first build is released, while doing detailed testing, retesting is required? if yes? Why?
  18. Once first build is released? Will we do regression testing?
  19. Regression testing starts from ————–& continues to —————-
  20. Retesting required to be done, during regression testing? If yes? Why?
  21. What do you mean by re& regression testing?
  22. Retesting starts from ———& continues till —————
  23. Is it required, to perform regression testing always during testing? If no? Explain?
  24. Is it true that retesting is required always during regression testing?
  25. With what type of testing, we start testing process?
  26. Tell me difference between alpha & beta testing?
  27. Whenever alpha testing is conducted, what is the need of beta testing?
  28. Is beta testing always needed to be conducted? If no? Explain?
  29. What is the importance of alpha and beta testing?
  30. Generally which customer prefers to go for beta testing?
  31. Is alpha testing conducted on customer interest or companies’ interest?
  32. What are the benefits of beta testing?
  33. What we will achieve after alpha testing?
  34. In which place, Beta testing is done?
  35. In which place, alpha testing is conducted?
  36. Beta testing is conducted by whom?
  37. If beta testing is not conducted, what problems company may face?
  38. Define static & dynamic testing?
  39. Document testing falls under———
  40. GUI testing falls under——testing
  41. Code reviews falls under—— testing
  42. Functionality falls under——testing
  43. Performance falls under——-testing
  44. Usability falls under———-testing
  45. What is the main purpose of installation testing?
  46. After every new build is released Will we do installation testing? No?
  47. Compatibility testing is compulsory conducted in———— based companies
  48. What is mutation testing?
  49. What do you mean by “mutant”?
  50. Give some examples for mutation testing?
  51. What is security testing?
  52. Who will do security testing?
  53. Which areas generally black box test engineers will concentrate in security testing?
  54. Explain how will you do direct URL testing?
  55. Explain difference between direct URL testing& user privileges testing?
  56. Who will do authentication testing? How it will be done?
  57. Can every authorized user of the application can access all the areas of the application? If no –explain?
  58. What is end to end testing? Is it compulsory for every project?
  59. While doing end to end testing how black box testing engineer should think & get ideas?
  60. What do you mean by end to end?
  61. What is the difference between compatibility testing & port testing?
  62. What are the advantages of port testing?
  63. Is compatibility testing required for projects also? Explain?
  64. If we don’t do usability testing? What will be the main problem?
  65. Give me some areas where we generally check the friendliness?
  66. How can we say any product is a quality product?
  67. Tell me some type of testing which are not required for all the projects?
  68. Tell me some important types of testing which need to be conducted on any project?
  69. Tell me 2 types of stress testing?
  70. What is difference between monkey testing & reliability testing?
  71. What do you focus during monkey testing?
  72. What do you focus during reliability testing?
  73. How u will do monkey testing?
  74. How you will do reliability testing manually?
  75. Can we do reliability testing manually?
  76. Can we do exploratory testing manually?
  77. What is the need of exploratory testing?
  78. In which situations we prefer exploratory testing?
  79. Is it compulsory to do exploratory testing on all the projects?
  80. Can a fresher do exploratory testing?
  81. What is the difference between exploratory & adhoc testing?
  82. Who will do adhoc testing?
  83. When the adhoc testing need to be done?
  84. What is the main goal of adhoc testing?
  85. What do you mean by exploring?
  86. In all the companies the Adhoc testing need to be encouraged on all the   Projects?  Explain?
  87. What is the use of “objective” in the test plan document?
  88. Generally which documents test lead will refer while preparing test plan document?
  89. With whom the test lead will involve in the meeting before starting the test plan?
  90. What will be there under features not be tested? Explain with some examples?
  91. What do you mean by out of scope feature?
  92. What do you mean by future functionality?
  93. Why low risk areas are not initially concentrated?
  94. What is the difference between test plan & test strategy?
  95. When we have test strategy, what is need of test plan?
  96. The contents in the test strategy will describe?
  97. What do you mean by test metric?
  98. Do all companies use same “terminology”?
  99. Name any two test design techniques?
  100. What is the use of test design techniques?
  101. When will you stop testing?
  102. When will you suspend testing?
  103. Can a test engineer take own decision & suspend the application?
  104. What do you mean by test deliverables? Why test engineer should have   knowledge of test environment?
  105. What is resource planning? & scheduling?
  106. Tell me some situations where training is required to accomplish the project successfully?
  107. Whenever a new project comes, will they rewrite a new staff? If yes? Explain?
  108. What do you mean by risk, contingencies with example?
  109. When ever a customer imposes the deadlines how will you handle the situation?
  110. Whenever the time given is not sufficient, what will you do?
  111. What do you mean by assumptions
  112. Should a test engineer, always need to assume during testing?
  113. Who will approve test plan document?
  114. Who will prepare test plan document?
  115. What is purpose of test plan document?
  116. Does test engineer prepare test plan document?
  117. Whenever the time given is not sufficient, what will you do?
  118. What will be there in requirement documents?
  119. What a test engineer should mainly focus in the requirements document?
  120. What is the use of screen shots in the requirements document?
  121. What do you mean by use case & what is the use of it?
  122. What is the difference between high level information & low level information?
  123. What is the difference between implicit requirements & explicit requirements?
  124. What will define implicit requirements & what is use of it?
  125. What is pre condition & post condition?
  126. Basically any application has how many flows?
  127. Soon after a test engineer receives use case document what he will do? Explain briefly?
  128. What is the functional point?
  129. What is the difference between test scenario & a test case?

 

 

Python-Introduction

Python Introduction

Python is a pure object oriented language created by guido van rossum. It was released in February 1991. Python is a open source language, you can even add new features to the python source code. It is a beginers language anyone can start coding with python. As it is a interpreter oriented language it executes line by line and interrupts execution at the fisrt error occurence. Python latest version is 3.7

Why Python is so powerful?

  1. Open Source
  2. Broad range of libraries
  3. Portable
  4. Extention
  5. high-level
  6. object oriented language
  7. scalable
  8. interpreted

Application of Python?

  1. Web Application
  2. Scientific and Numeric Computing
  3. Image Processing
  4. Data Science
  5. I, Machine Learning, Deep Learning
  6. Robotics
  7. Game Desigining
  8. I.S

Is python Procedural/Object Oriented language?

            It supports both procedural oriented programming as well as object-oriented programming. As python is developed from different languages, it takes functional oriented features from C language, object-oriented features from C++, scripting from Perl & shell script, Modular programming from module-3 and syntax from C, ABC languages.

             In python, the most common tasks are grouped into functions. Python also consists of a number of predefined functions. So it is considered a procedural oriented programming language.

 Eg:- type(),len(), max(),print()…

 

            On the other hand, everything in python is a class or an object of that class, inheriting the class properties. So python is a object-oriented language.

Eg:- >>> a=10

        >>>type(a)

       <class ‘int’>

      Variables and Datatypes

            Python is a dynamically typed/ type-inferred languages. It means, there is no need  to declare the datatype of a variable before it is used.The variables can be assigned directly with any value. Python interpreter recognises the datatype of the variable based on the value assigned to it. Their is no limit/range for any datatype in python. To know the datatype of a variable, we can use the type () function. 

Eg:-

       >>> s=’supernatural’

      >>> type(s)

      <class ‘str’>

Rules to declare variable/identifiers:

            The names given for function, class and modules is called identifieres. The following rules must follow to declare variable/identifiers are:

  1. It should start with A-Z or a-z or uderscore(_) and can followed by 0-9
  2. Keyword should not be used
  3. Special characters, punctuation marks should not be used

Eg:-

            >>>_a=500 (#valid)

            >>> a  b=500(#invalid)

            >>> 1f=500(#invalid)

            >>>a6gf=500(#valid)

Datatypes:

            In python their are six major datatypes 

  1. Number
  2. String
  3. List
  4. Tuple
  5. Set
  6. Dictionary

Every datatype is a class in python, It contains data and methods. When a variable is initialised with a value the datatype of the variable is automatically detected  and the variable becomes an object of that particular class. It can access the data and method of that class.

These datatypes are divided into two different categories

  1. immutable datatypes
  2. mutable datatypes

Immutable Datatypes:

            Data cannot be modified for immutable datatypes. Numbers,Strings and  Tuples are immutable datatypes

Mutable Datatypes:

            Data can be modified for mutable datatypes. Lists,Sets, and Dictionaries will come under these categories

List

           list is a sequence datatype in python. It is mutable datatype. List is declared by enclosing the elements in sqaure brackets []  and seperated by commas(,). It will support heterogeneous data.

 

>>> L=[1,2,5,7,10]

>>>type(L)

<class ‘list’>

>>>L=[ 5, ‘python’, 4.5, 4+5j, [1,3,5,8]]

List Sclicing:

            The clicing operator [] is used to access the elements of the list using the index of the list. The index of the list start with the zero and ends with len(list)-1.  len()  function returns length of the list.  

>>>L[1]

‘python’

>>>L[4] [1,3,5,8]

            The elements in the list can also be accessed by using the reversed indexing. Reverse indexing start with -1 from the ending of the list to -len(list)

>>>L[-1] [1,3,5,8]

>>>L[-3]

4.5

Range Slicing:

            The range slicing operator [:] is used to access a sublist from the given list [start: end].

The returned sublist starts with the index position start to the index position-1.

 >>> L[0:3] [5, ‘python’, 4.5]

>>>L[-3 : -1] [4.5, (4+5j)]

If starting index postion is not assigned then it will return from the starting of the list to the specified end position.

>>> L[:2]

 [5, ‘python’]

>>>L[-3] [5, ‘python’]

If the ending position is not specified then the list will be returned from the given starting position to the end of the list.

>>>L[2:] [5, ‘python’]

The list L contains string and list as elements the are sequence datatypes. We can access those individual elements also.

>>> L[1][ : -3]

‘pyt’

>>> L[-1][-1]

8

>>>L[-1][-2:] [5, 8]

*Note: List will take three parameters as input one is start, stop and step(optional).

>>> L[ : : -1] [[1, 3, 5, 8], (4+5j), 4.5, ‘python’, 5]

>>> L[0 : 3: -1] []

>>> L[ 3 : 0 : -1] [(4+5j), 4.5, ‘python’]

>>> L[-1 : -5 : -1] [[1, 3, 5, 8], (4+5j), 4.5, ‘python’]

>>>

List Methods:

            By default list class contains some methods we can access these methods by creating list variable. This variable acts as list class object / instance. To access list methods we need call using.

 object_name.method_name()

>>> L=[ 5, ‘python’, 4.5, 4+5j, [1,3,5,8]]  #L is list class object

  1. Append Method:

            append method will add the elements/object to the existing list at last position.

>>> L1=[2,35,6]

>>> L.append(L1) # L1 is other list object

>>> L

[5, ‘python’, 4.5, (4+5j), [1, 3, 5, 8], [2, 35, 6]]

>>> L.append(‘india’) # directly we can add elements in this way

>>> L

[5, ‘python’, 4.5, (4+5j), [1, 3, 5, 8], [2, 35, 6], ‘india’]

>>> 

2, Copy Method:

            copy method will copy the element of one list to other list but their reference will be different.

>>> L3=L.copy()

>>> L

[5, ‘python’, 4.5, (4+5j), [1, 3, 5, 8], [2, 35, 6], ‘india’]

>>> L3

[5, ‘python’, 4.5, (4+5j), [1, 3, 5, 8], [2, 35, 6], ‘india’]

>>> L.append(‘Jhon’) #if we add new element to list L it will not change in L3 as their reference is differ

>>> L

[5, ‘python’, 4.5, (4+5j), [1, 3, 5, 8], [2, 35, 6], ‘india’, ‘Jhon’]

>>> L3

[5, ‘python’, 4.5, (4+5j), [1, 3, 5, 8], [2, 35, 6], ‘india’]

*To check which memory location is pointing by a variable using  id(variable).

>>> id(L)

140081661061832

>>> id(L3)

140081632587016

>>> L2=L #We can directly assign  in this format but it will point to one reference

>>> id(L)

140081661061832

>>> id(L2)

140081661061832

*If any changes performed on list L it will reflect on list L2 also.

>>> L.append(100000)

>>> L

[5, ‘python’, 4.5, (4+5j), [1, 3, 5, 8], [2, 35, 6], ‘india’, ‘Jhon’, 100000]

>>> L2

[5, ‘python’, 4.5, (4+5j), [1, 3, 5, 8], [2, 35, 6], ‘india’, ‘Jhon’, 100000]

>>>

  1. Count Method:

            if will count how many time particular element is exist in list L

>>> L.count(5)

1

  1. Clear Method:

            clear method will clears the entire list elements

>>>L.clear()

[]

 Extend Method:

            It will extends list by appending elements from the iterable.

>>> L=[1,3,4]

>>> L1=[5,6,1]

>>> L.extend(L1)

>>> L

[1, 3, 4, 5, 6, 1]

      6.Index Method:

            Index method will returns index of the first occurence of  particular element. If element not found in list it will rise an exception.

>>> L.index( 1 )  # element 1 is present in two index postions i.e 0,5

0

>>> L.index(10)         # element 10 is not present in list L

Traceback (most recent call last):

  File “<pyshell#4>”, line 1, in <module>

    L.index(10)

ValueError: 10 is not in list

  1. Insert Method:

            This method will take two parameters, one is index position and other is element. If index is not in range it will place element at the end of the list.

>>> L

[1, 3, 4, 5, 6, 1]

>>> L.insert( 2, 55)

>>> L

[1, 3, 55, 4, 5, 6, 1]

>>> L.insert( 100, 55)

>>> L

[1, 3, 55, 4, 5, 6, 1, 55]

>>> L.insert( -4, 55)

>>> L

[1, 3, 55, 4, 55, 5, 6, 1, 55]

 

  1. Pop Method:

            pop method removes and returns the last item from the list. It takes an optional parameter which is index position of the element and removes from the list.

>>> L.pop()

55

>>> L

[1, 3, 55, 4, 55, 5, 6, 1]

>>> L.pop(2)

55

>>> L

[1, 3, 4, 55, 5, 6, 1]

>>> L.pop(99)  # index 99 doesn’t exists list L

Traceback (most recent call last):

  File “<pyshell#23>”, line 1, in <module>

    L.pop(99)

IndexError: pop index out of range

>>>

9.R emove Method:

            this method take ean lement from the list as an argument and removes the first occurence of that element from the list. It raises an exception if the element is not present in the list.

>>> L

[1, 3, 4, 55, 5, 6, 1]

>>> L.remove( 1 )

>>> L

[3, 4, 55, 5, 6, 1]

>>>

  1. Reverse Method: This method reverses the elements of the list in the place.

>>> L.reverse()

>>> L

[1, 6, 5, 55, 4, 3]

>>>  

  1. Sort Method:

            This method sorts the elements of the list in ascending order if all the elements belong to the same datatype. If elements are of different datatypes, it raises an exception.

>>> L

[1, 6, 5, 55, 4, 3]

>>> L.sort()

>>> L

[1, 3, 4, 5, 6, 55]

>>> L2=[ ‘a’ ,1, 4, 5, 44.0]

>>> L2.sort()

Traceback (most recent call last):

  File “<pyshell#32>”, line 1, in <module>

    L2.sort()

TypeError: unorderable types: int() < str()

 

            It take’s two optional parameters, one is key and other one is reverese. Key parameter takes a function and sorts elements in the list based on that function eg:- len,min,max.

            Reverse parameter takes boolean values True and False, By default this parameter is set to False so elements are sorted in ascending order. If parameter is set to True the elements are sorted in descending order.

 

 >>> L3=[ ‘python’ , ‘java’ , ‘C’ , ‘pascal’ , ‘CPP’ , ‘programming’ ]

>>> L3.sort()

>>> L3

[ ‘C’ , ‘CPP’, ‘java’ , ‘pascal’ , ‘programming’ , ‘python’ ]

>>> L3.sort(reverse=True)

>>> L3

[ ‘python’ , ‘programming’ , ‘pascal’ ,  ‘java’ , ‘CPP’ , ‘C’ ]

>>> L3.sort( key=len, reverse=True)

>>> L3

[ ‘programming’ ,  ‘python’ ,  ‘pascal’,  ‘java’ , ‘CPP’ , ‘C’]

>>>

Software Testing Life Cycle

Software Testing is not considered as a single activity like Do and Close it, but rather it is an ongoing process which never stops (Requirements analysis to test closure, again Requirement Analysis start for new one.) that’s why we consider a sequence of activities (Lifecycle) conducted to perform Software Testing.

software testing life cycle

Points to highlight on STLC process

  • Using certain orders, STLC ensures that the quality standards of an application were met.
  • Each order has its own activities, goals, and deliverables.
  • Each organization follows different phases whereas the basis for STLC remains the same.

In order to understand the orders/phases in details, let’s  consider a real-time example which suits STLC process

Try to build/construct an apartment

Try to build/construct an apartment

For this we have to go through below sequential phases:

Phase 1: Needs/Requirements:

Here will focus on our basic needs to start an apartment, which is very crucial critical analysis.

Action items involved:

  • Type of land
  • Availability of resources like water, ventilation, etc..,
  • Area locality
  • Distance from roads markets educational sectors, offices etc..,

Phase2: Planning

After fulfillment of our needs will plan according to needs

Action items involved :

  • Estimation of human Resources/labor required to complete construction.
  • Amount of materials (concrete cement, sand etc..,)required.
  • Time intervals to complete construction.
  • Blueprint of the apartment.

Phase 3: Designing/Construct:

As per plan, we start to design the building by analyzing the plan.

Action items involved:

  • How many floors, how many flats per floors, how many rooms, dimensions of each room etc..,

Phase 4 : Verify:

Here we will verify the apartment parameters by referring to design/construct.
If actual dimensions of the rooms are not as per design, will do rectification actions and make changes.

Action items:

  • Actual construction will be compared with Design.

Phase 5: Closure activities:

Once all activities complete will happy to go to home

Action items: 

  • We will doesn’t consider how design and verification has been because all are verified correctly and able to see properly constructed home.

similarly, we can describe Software testing life cycle with below phases:

Phase 1: Test Requirement Analysis:

It is an initial phase where Testable Requirements will be analyzed by QA Team which are basic user needs/expectations.

Phase 1 ; Test Requirement Analysis:

Here QA Team builds strong communication Stakeholders (customer, business analyst, technical leads. system architects, user, client, etc..,) to understand the user ideas (requirements) in detail.

Action items:

  • Test priorities and focus of testing.
  • Types of tests like manual or automation will be finalized.
  • Objectives.
  • Goals.
  • Background/History.
  • Functional and Non-Functional Requirements etc..,

Phase 2: Test Planning  

Here higher level people like QA LEAD or QA Manager Will prepare a document which consists of efforts and cost estimates for the project and Complete the test activity.

Test planning

Action items:

  • Prepare Test plan/Test Strategy document.
  • Planning and determining roles and responsibilities of each resource
  • Efforts estimation.
  • Tools used for testing etc…,

Phase 3: Test case/Design development:

Here on seeing the Test plan document, QA Team will Start preparing the Test scenarios, with that, they will write Test casesThese Test scenarios/Test cases will be reviewed by higher level people and approved Test cases will be used to execute the application.

Test case/Design development:

Test scenarios can be both positive and negative checks.

Acton items

  • Prepare Test cases/Test scripts.
  • Test cases/Test scripts review
  • Test Data preparation

Phase 4: Test Execution:

Here QA Team will start executing the application/software (which were migrated from Development team to check) by referring to the written Test Design/Test cases.

 Test Execution:

 

 

 

 

 

If the actual result (from application) doesn’t meet the expected result (from Test cases), then the corresponding test case will be failed. QA Team inform the failed Test case to Developer for correction and test will be carried again after fix from the developer.

Action items:

  • Check application according Test cases.
  • Generate Test results of Test casses to be executed (both pass and fail)
  • Retesting of fixed defects.

Phase 5: Test closure Activities:

Once all Test activities involved in the Test process completes.QA Team will prepare a Test report which shows the Test results by referring to a number of Test cases Written, number of “No Run” Test cases, number of Test cases” passed” (which were passed after fix) etc..,

Test closure Activities:

Basic names for test reports are:

Test summary report.
Test execution Report.
Test status Report.
Test post morten Report.
Action items:
Test Analysis report.
Test final report.

Java-Programs-asked-in-Selenium-Interview

1. How to Print List of Even Numbers in Java?

 package JavaPrograms_InterviewQuestions;

 import java.util.Scanner;

 public class PrintEvenNumbers {

public static void main(String[] args) {

Scanner sc = new Scanner(System.in);

System.out.println(“Enter Limit:”);

int value = sc.nextInt();

System.out.println(“Print Even numbers between 1 and ” + value);

for (int j = 1; j <= value; j++) {

// if the number is divisible by 2 then it is even

if (j % 2 == 0) {

System.out.print(j + ” “);

}

}

}

}

Output :

Enter Limit:

40

Print Even numbers between 1 and 40

2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40

2.How to Compare Two Numbers In Java ?

 package JavaPrograms_InterviewQuestions;

import java.util.Scanner;

public class CompareTwoNumbersInJava {

public static void main(String[] args) {

Scanner sc = new Scanner(System.in);

System.out.println(“Enter Number 1: “);

int num1 = sc.nextInt();

System.out.println(“Enter Number 2: “);

int num2 = sc.nextInt();

if (num1 > num2) {

System.out.println(num1 + ” is greater than ” + num2);

} else if (num1 < num2) {

System.out.println(num1 + ” is less than ” + num2);

} else {

System.out.println(num1 + ” is equal to ” + num2);

}

}

}

Output :

Enter Number 1:

14

Enter Number 2:

12

14 is greater than 12

3.Access Modifiers in Java ?

package JavaPrograms_InterviewQuestions;

public class Java_AccessModifier {

public int a = 10;

protected int b = 20;

private int c = 30;

int d = 40;

public void test1() {

System.out.println(“public test1()”);

}

protected void test2() {

System.out.println(“protected  test2()”);

}

void test3() {

System.out.println(“void test3()”);

}

private void test4() {

System.out.println(“private  test4()”);

}

public static void main(String[] args) {

Java_AccessModifier obj = new Java_AccessModifier();

obj.test1();

obj.test2();

obj.test3();

obj.test4();

System.out.println(obj.a);

System.out.println(obj.b);

System.out.println(obj.c);

System.out.println(obj.d);

}

}

Output :

public test1()

protected  test2()

void test3()

private  test4()

10

20

30

40

HOW TO HANDLE FRAME IN SELENIUM WEBDRIVER USING JAVA?

4.Verify Year is Leap Year or Not in Java ?

package JavaPrograms_InterviewQuestions;

import java.util.Scanner;

public class VerifyLeapYear {

public static void main(String[] args) {

Scanner sc = new Scanner(System.in);

System.out.println(“Enter Year: “);

int year = sc.nextInt();

// if year is divisible by 4, it is a leap year

if ((year % 400 == 0) || ((year % 4 == 0) && (year % 100 != 0))) {

System.out.println(“Year ” + year + ” is a leap year”);

} else {

System.out.println(“Year ” + year + ” is not a leap year”);

}

}

}

 

Note: Every fourth year is Leap Year.

Output :

Enter Year:

2008

Year 2008 is a leap year

 

5. To verify whether the no is palindrome or not in java?

package JavaPrograms_InterviewQuestions;

import java.util.Scanner;

class VerifyPalindrome {

public static void main(String args[]) {

int r, sum = 0, temp;

Scanner sc = new Scanner(System.in);

System.out.println(“Enter Number to Check Palindrome or Not:”);

int n = sc.nextInt();

temp = n;

while (n > 0) {

r = n % 10;

sum = (sum * 10) + r;

n = n / 10;

}

if (temp == sum) {

System.out.println(“Given Number is Palindrome”);

} else {

System.out.println(“Given Number is Not Palindrome “);

}

}

}

 

Note: A palindromic number or numeral palindrome is a number that remains the same when its digits are reversed.

 

Output :

Enter Number to Check Palindrome or Not:

5

Given Number is Palindrome

STEPS TO CONFIGURE SELENIUM WEBDRIVER WITH JAVA TO DEVELOP TEST SCRIPTS

6. Find Factorial of a Number in Java?

package JavaPrograms_InterviewQuestions;

import java.util.Scanner;

public class FactorialNumber {

public static void main(String[] args) {

Scanner sc = new Scanner(System.in);

System.out.println(“Enter Number: “);

int value = sc.nextInt();

int factorial = value;

for (int a = (value – 1); a > 1; a–) {

factorial = factorial * a;

}

System.out.println(“Factorial of number is ” + factorial);

}

}

 

Note : factorial of number 4!= 4*3*2*1=24.

Output :

Enter Number:

4

Factorial of number is 24

7.H ow to Display Fibonacci Series in java?

 

package JavaPrograms_InterviewQuestions;

import java.util.Scanner;

public class FibonacciSeries {

public static void main(String[] args) {

Scanner sc = new Scanner(System.in);

System.out.println(“Enter Number for Fibonacci series :”);

int n = sc.nextInt();

int t1 = 0, t2 = 1;

System.out.print(“First ” + n + ” terms: “);

for (int i = 1; i <= n; ++i) {

System.out.print(t1 + ” , “);

int sum = t1 + t2;

t1 = t2;

t2 = sum;

}

}

}

 

Output :

Enter Number for Fibonacci series :

10

First 10 terms: 0 , 1 , 1 , 2 , 3 , 5 , 8 , 13 , 21 , 34 ,

8. To Check Whether a Number is Prime or Not in java?

 package JavaPrograms_InterviewQuestions;

import java.util.Scanner;

public class PrimeNumber {

public static void main(String[] args) {

Scanner sc = new Scanner(System.in);

System.out.println(“Enter Prime Number: “);

int num = sc.nextInt();

boolean flag = false;

for(int i = 2; i <= num/2; ++i)

{

// condition for nonprime number

if(num % i == 0)

{

flag = true;

break;

}

}

if (!flag)

System.out.println(num + ” is a prime number.”);

else

System.out.println(num + ” is not a prime number.”);

}

}

 

Output :

Enter Prime Number:

29

29 is a prime number.

 

 

 

How to verify single checkbox in a webpage using selenium?

TestSteps

  • Open the Firefox browser
  • Navigate the AppUrl
  • Identify Checkbox1
  • Select Checkbox1
  • Verify Checkbox1
  • Close the current Browser window

Selenium Code :

——————–

package seleniumProject;

import org.openqa.selenium.By;

import org.openqa.selenium.WebDriver;

import org.openqa.selenium.WebElement;

import org.openqa.selenium.firefox.FirefoxDriver;

 

public class VerifyCheckbox {

public static void main(String[] args) {

  //open the firefox browser

WebDriver Driver = new FirefoxDriver();

  //navigate the AppUrl

Driver.get(“http://demo.guru99.com/test/radio.html”);

// Identify Checkbox1

WebElement CheckBox1= Driver.findElement(By.id(“vfb-6-0”));

//Select Checkbox1

CheckBox1.click();

   //Verify Checkbox1

if (CheckBox1.isSelected())

{

System.out.println(“Checkbox1 Selected”);

} else

{

System.out.println(“Checkbox1 not Selected”);

}

  //Close the current Browser window

Driver.close();

}

}

How to verify multiple checkboxes in a webpage using sselenium?

TestSteps :

  • Open the firefox browser
  • Navigate the AppUrl
  • Identify all Checkboxes and store into checkBoxes variable
  • Print the total checkboxes
  • Select multiple checkboxes one by one
  • Verify multiple checkboxes one by one
  • Close the current Browser window

 Selenium Code :

——————–

package seleniumProject;

import java.util.List;

import java.util.concurrent.TimeUnit;

import org.openqa.selenium.By;

import org.openqa.selenium.WebDriver;

import org.openqa.selenium.WebElement;

import org.openqa.selenium.firefox.FirefoxDriver;

public class Verify_Multiple_Checkboxes {

public static void main(String[] args) {

       //open the firefox browser

WebDriver driver = new FirefoxDriver();

  //navigate the AppUrl

driver.get(“http://demo.guru99.com/test/radio.html”)

     // Identify all Checkboxes and store into checkBoxes variable

List<WebElement> checkBoxes = driver.findElements(By.xpath(“//input[@type=’checkbox’]”));

   //print the total checkboxes

System.out.println(checkBoxes.size());

for(int i=0; i<checkBoxes.size(); i++)

{

  //select multiple checkboxes one by one

checkBoxes.get(i).click();

       //verify multiple checkboxes one by one

if(checkBoxes.get(i).isSelected())

{

System.out.println(i+” checkBox is selected “);

}else{

System.out.println(i+” checkBox is not selected “);

}

}

  //Close the current Browser window  

driver.close();

}

}

SELENIUM | BROWSER COMMANDS :

isSelected(): By using this we can verify particular checkbox is selected or not on a webpage.

 

Click here: Steps to configure Selenium WebDriver with java to develop test scripts

Click here: How to handle frame in selenium webdriver using java?

Selenium Training in Hyderabad

Kosmik Technologies is on of the best selenium training in Hyderabad. We are providing lab facilities with complete real-time training. Training is based on complete advance concepts. So that you can get easily “hands-on experience”. We will give 100% job assistance.

 

Manual testing interview questions
Manual testing interview questions
1) Difference between Regression and retesting?
 
Retesting:
 
When QA identified a defect, then it should be assign it to Developer. Once developer gives fix, then there should be retesting done to confirm defect has been removed or not. This we call RETESTING”. Retesting will done before regression.
 
Regression:
If any new code added to the application (New CR and Defected fixed code), ensure this new code doesn’t impact on other components of the system. Regression will done after retesting.
 
2) What are different phases in agile process?
 
Agile is very powerful SDLC methodology to implement software in a better manner.
 
  • Sprint planning.
  • Sprint meeting.
  • Sprint product demonstration.
  • Sprint Retrospective.
 3) Who Will prepare RTM(Requirement Traceability Matrix)
 
Requirement Traceability Matrix will ensure 100% test coverage. Which means every test case should be mapped to their corresponding Requirement. In an organization, QA Manager will prepare Requirement Traceability Matrix
  
4) Define Defect Life Cycle with defect status?
 
Defect life cycle starts with when defect found and when it successfully closed(also Known as Bug Life Cycle). In this defect undergoes different status, Which described below.
 
  • New: When QA member finds the defect.
  •  Open: Once QA lead/Manager review defect and change it status to open and assign it to Developer.
  •  Fixed/ Retest: Once defect got fixed from Developer and assign it to QA member.
  •  Re-OPenedIssue after retesting the defect. In this member assign defect to Developer again.
  •  Rejected: There will be two reasons to reject defect from Developer.
  •  Duplicate Defect: Same defect has been raised by another QA member
  •  Not a Defect: Raised defect is not related to Requirement.
  •  Deferred: Fix will be given in further phases.
  •  Closed: Once the retested defect meets user requirement, QA member will close the defect.
 5) Where Test cases will be written in QC?
 
Test cases design will be done in Test Plan.
 
6) Where Test cases will be executed?
 
When tested application is migrated to QA Environment, then Test cases corresponding application will be pulled to Test lab and will be executed.
 
7. Name different requirement documents?
 
  • SRS(System requirement specification)
  • BRD (Business requirement document)
  • TRD (Technical Review document)
  • User Manuals.
  • Use cases
  • User stories(only in agile)
 8. What is meant by test scenario and test case?
 
Test scenario is “what to be tested and test case “How to be tested”. Test scenario is simply one liner statement Which explains about What to test. Whereas Test case gives detailed information about Pre-condition. What to test ,test description, design steps and expected results.
 
9. At What condition automation is preferred?
 
After completion of manual testing (application is in Stable), if any regression/repeated test cases going to execute, in that case Automation is preferred.
 
10) System and E2E testing levels will fall into what method?
 
System and E2E will come into Black Box Testing
 
11) What is meant by alpha and beta testing?
 
In Alpha, Application/Software is under Developer environment. Here we will shows case the application as per the user requirements.
 
Where in Beta, Application/Software is under user environment and Developer will send only few feedbacks to support UAT.
 
12) Name the roles and responsibilities of product owner in Agile?
 
Roles for product owner are:
 
He/She prioritize the Sprint duration.
 
He/She prioritize the User stories for the particular Sprint.
 
13) What things do we discuss in Retrospective meeting in Agile?
 
      Below things are discussed in Retrospective meetings.
 
  • Things went well.
  • Things not went well
  • Things need to be updated.
14) Name few SDLC types
 
SDLC types:
 
  • Water fall.
  • V-Model.
  •  Iterative.
  •  Spiral.
  •  Big bang.
  •  Agile etc.
15) Name types of integration testing?
 
  • Top- Bottom Approach.
  •  Bottom- Up Approach.
  •  Sandwich Approach.
  •  Big Bang Approach.

What is testing tools?

Before knowing Software testing, we need to know what is meant by the word “TEST”.

In real world, we see TEST as

  • Test exam: Conducting an exam to check the students percentage of pass/fail.

Action items: As per the questions given, students answer to the corresponding questions (which means every question should have expected answers.)

  • Test Lab Reports: Here as per the sample given, will go a process of treatment as per the reports.

Action Items: As per the reports will contact doctor and do the corrective actions.

  • Test Drive: Here will check performance (speed, mileage, engine pickup, etc…,) of the driven vehicle.

Action Items: Here we will check whether the vehicle is as per our requirements or not.

  • Test Match: Everyone knows what is meant by Test Cricket, where we mainly focuses on player performance like stamina, sustain, resistance, patience etc…,

Action Items: Player will be IN the team if his/her performance is good.

Now derive, definition of Software Testing from real-time examples:

Software testing is a process of identifying the issues and do the corrective actions and provide quality product of an application/product/software.

Aim: Is to focus on user requirements, needs and expectations of the user/customer.

Job: To find the failures in the application and do the corrective actions as per user needs.

Testing Tools Training in Hyderabad

Testing Tools:

For doing testing in this advanced world, we will use some testing tools in order to fasten the work, bring system into stable, check in multiple applications simultaneously, provide continues reports to user for easy to understand, etc…,

Some of the well-known testing in market are:

  1. TestComplete
  2. Selenium
  3. LeanFT
  4. Tosca
  5. UFT
  6. Rational Functional Tester

 

testing tools in market

 

Automation tools:

Nowadays, development pactices changes frequently and many updates are proposed which aims to provide quality, customer expectations, productivity etc…, and the same should be happen when comes to test automation.

The main Automation tools available in current market are:

  1. UFT
  2. Selenium
  3. Katalon Studio
  4. TestComplete
  5. Rational Software etc…,

 

Automation Testing

Automation Tools

What is meant by Manual Testing?

Basically Software Testing is divided into two types:

  1. Manual Testing
  2. Automation Testing

Manual Testing vs Automation Testing

Manual Testing will be defined as:

Software testing where QA team manually executes written Test cases without any automation involved will be considered it as Manual Testing.

Aim of Manual Testing to find/identify the bugs/defects in the application/product/software using written Test cases and focus on delivery quality application / product / software which meets ccustomer/userneeds.

Manual Testing

indepths of Manual Testing

Why Manual Testing needed?

  • Whatever we expect should come:

Example: When we try to launch https://www.gmail.com login page, it should show me the same, but if it opens https://www.yahoomail.com which is not as expected. Hence there should be a team (QA) to check whatever user needs should come.

Why manual Testing

  • Application behavior varies from one to many users, so it should work as expected when deals with one to many:

Example: Generally we have noticed server slow / down when we try to book railway tickets at Tatkal timings and as well as when server publish exam result. This is mainly due to load on the server. So there should be a team (QA) to check the server performance with one to many user.

  • Application in different places should work without any dependency:

 

Example: # Many people uses different devices like IPhone, Moto, Samsung, MI etc…,

    # Not only this, people uses many browsers like Mozilla, Chrome, IE, Safari etc…,

    #adding to this, many people uses many Operating Systems like Windows, Linux, MAC, Android, IOS etc…,

Hence application should behave same irrespective of devices / Browsers / Operating Systems which means a team (QA) should require to support this checks.

Manual Vs Automation:

As the name Manual suggests, executing the application with respect to written Test Cases. And for Automation, will execute the application with respect to written Test scripts. However we have many difference between Manual and Automation.

Manual

  • Investment required as human are involved.
  • Time Consuming.
  • Less reliable, not accurate due to human errors.
  • Suitable at Exploratory Testing, Usability Testing and Ad-hoc testing.

Automation

  • Investment required on automation tools.
  • It will be faster than manual.
  • More reliable as Automation tools involve.
  • Suitable at regression testing, Load Testing, repeated testing and performance testing.

Manual Testing vs Automation testing

Software Testing Life cycle(STLC):

As a basic example, a human life will start as Infant, later goes through distinct ages to gradually grow and matured to grand age. Similarly, Software Testing Life Cycle has different phases to go though and gives us a Quality Product.

Phases:

  1. Test Requirement ANalysis.
  2. Test planning.
  3. Test case Design and Development.
  4. Test Environment Setup.
  5. Test Execution.
  6. Test Closure.
Software Development Life Cycle(SDLC):

Software Development Life Cycle involves entire product members to design, develop and gives the quality product as per the customer needs.

It is a conceptual and long-term view of software product to be delivered.

Types of SDLC models in real market:
  1. Waterfall Model.
  2. V-Model.
  3. Iterative Model.
  4. Spiral Model.
  5. Big-Band Model.
  6. AGILE Model etc…,

Manual testing interview questions and Answers

Testing Tools training in Hyderabad

Kosmik Provides Testing Tools training in Hyderabad(ClassRoom & Online). We are providing lab facilities with complete real-time training. Training is based on complete advance concepts. So that you can get easily “hands-on experience”. We will give 100% job assistance.

Android Basic Interview Questions

android basic interview questions

Android Developer Interview Questions

1.What is android?

 Android is open source Linux based operating system with middle ware and some key applications

2.What are the advantages of android?

Open-source:

It means no licence, distribution and development fee.

Platform-independent: 

Android is platform independent we can develop applications in mac, Linux and windows also by using android studio

Supports various technologies:

It supports camera, Bluetooth, WiFi, speech, EDGE etc. technologies.

DVM :

DVM is highly optimized virtual machine which will convert to .dex file

3.What is an Activity?

Activity is like a frame or window in java that represents GUI. It represents one screen of android.

4.What is Activity life cycle?

There are 7 life-cycle methods of activity. They are as follows:

  1. onCreate() — called when activity is first created.
  2. onStart() — onStatrt will invoked  when activity is becoming visible to the user.
  3. onResume() — onResume will invoked when activity will start interacting with the user.
  4. onPause() onPause will invoked when activity is not visible to the user.
  5. onStop() — onStop will invoked if activity is no longer visible to the user.
  6. onRestart() — onRestart will invoked if your activity is stopped and prior to start.
  7. onDestroy() — onDestroy will invoked before the activity is destroyed

5.What is the difference between margin and padding?

if you want to take your widget like TextView, EditText far away from other. You should use margin from top,right,left,bottom.

By giving padding the component size will be increased  

6.What is the difference between gravity and layout_gravity?

android:gravity Is to specify to place content with in the object.if gravity is left means object content is going to be left to the component.

android:layout_gravity is an attribution the child can supply to its parent, to specify the gravity the view within its parents

7.What is APK?

APK means Android Package Kit.android is going to make apk file with all resources and code to install on mobile phone

8.What DVM and difference between DVM and JVM?

DVM means Dalvik Virtual Machine

DVM is Register based and specially designed to run on low memory

uses its own byte code and runs .Dex file

JVM is Stack based and convert all java code to .class files

9.What is AndroidManifest.xml?

Every application must have an AndroidManifest.xml file (with precisely that name) in its root directory.We will register every activity ,services,broadcast receivers and content providers.We will declare all permissions in manifest file only.

10.What is a service in android?

Service is a background process that can run for a long time even after closing activity also.

11.What is Content Provider?

Content Providers are used to share data between the applications.

12.What is Broadcast Receiver?

A broadcast receiver (receiver) is an Android component it allows you to register for system events Like calls, notifications. Once we register a receiver, automatically receiver is going to call once that functionality is triggered.

 

1. What is default package of selenium?
2. Maximizing Browser Window?
3. What are the prerequisites to run selenium webdriver?
4. What are the flavors of selenium ?
5. Diff b/w Verify and Assert ?
6. How to Verify Element is visible or not?
7. Verify Single checkbox is selected or Not ?
8. Verify Multiple checkboxes are selected or Not ?
9. How to handle Popup window ?
10. How to perform double click in selenium?
11. How to select dropdown value inside a frame?
12. How to get all the frames on webpage ?
13. How Switch back to Main page from Frame ?
14. Suppose I have two submit buttons with same names on Webpage, here how can u click on 1st submit button.
15. How to scroll webpage to particular WebElement ?
16. How to read and verify Font Properties?
17. Diff b/w cssSelector and xpath ?
18. How to verify particular text in a webpage ?
19. Diff b/w driver.getwindowhandle() and driver.getwindowhandles()?
20. Which Programming Languages Supported By Selenium WebDriver To Write Test Cases?
21. Which Different Element Locators Supported By Selenium WebDriver?
22. What Is XPath and what Is use of It In WebDriver?
23. Which tool you are using to find the XPath of any element?
24. Can you tell me a difference between driver.get() and driver.navigate() methods?
25. Which Programming Languages Supported By Selenium WebDriver To Write Test Cases?
26. What Is XPath and what Is use of It In WebDriver?
27. How to handle Web Based Popups?
28. How to handle single Popup window ?
29. Can we automate desktop software application’s testing using selenium WebDriver?
30. Can we perform drag and drop operation In Selenium WebDriver?
31. How to verify successful message in a webpage ?
32. How do you identify the Xpath of element on your browser ?
33. What is the difference between absolute XPath and relative XPath?
34. How to Create customized xpath in selenium ?
35. How To Handle Dynamic Changing IDs In XPath. ?

Example :
Xpath= //div[@id=’post-body-3647323225296998740′]/div[1]/form[1]/input[1]

In this XPath “3647323225296998740” Is changing every time when reloading the page. How to handle this situation?

36. Tell me a reason behind bellow given WebDriver exception and how will you resolve It?

“Exception in thread “main” org.openqa.selenium.NoSuchElementException: Unable to locate element”

37. Can you tell me a syntax to close current webdriver Instance and to close all opened webdriver Instances?
38. What Is the syntax to get value from text box and store It In variable. ?
39. How to capture screenshot when test case failure In selenium webdriver ?
40. Tell me any 5 webdriver common exceptions which you faced during software test case execution. ?
41. What is Difference between getAttribute() and getText()?
42. To verify whether the particular text is present or not on the page ?
43. Why need Ant-XSLT-Reports in selenium WebDriver. ?
44. What is a framework and Advantages of framework. ?
45. How to Login with Excel ?Write selenium Code. ?
46. How to verify dropdown values using Excel in selenium WebDriver. Write selenium Code. ?
47. How to run Multiple test cases from Testng.xml file. Write selenium Code. ?
48. For ex I have 3 columns from webTable .How to print the 2 column data from webtable. ?
49. Difference between selenium and qtp ?
50. Tell me about the brief introduction of selenium ?
51. Does selenium support mobile application testing ?
52. Can client server application can be automate through the selenium ?
53. which type of testing we are doing by using selenium ?
54. what are the limitations of selenium ide or selenium webdriver ?
55. How to identify webelement in selenium ?
56. when we will go for xpath in selenium ?
57. I want to run my application into firefox browser. How you handle it ?
58. what is the difference between id and name in selenium ?
59. How to handle dynamic objects in selenium ?
60. what are the locators available in selenium ?
61. what is the default timeout for selenium ?
62. When do we use implicit and explicit in selenium ?
63. How to handle ajax application in selenium webdriver ?
64. How to handle multiple Popup windows in selenium webdriver ?
65. Difference between findelement() and findelements() in selenium ?
66. How to handle the Expected alerts in webdriver ?
67. How to handle the UnExpected alerts in webdriver ?
68. My web page contain calendar, how to write script for calendar date selection ?
69. My checkbox would be in checked position, how can you say checkbox would be in check position ?
70. My login page contain captcha explain how to write script ?
71. How to run eclipse script from cmd prompt by Ant ?
72. How to execute same script in different browsers ?
73. what is isdisplayed in selenium ?
74. what is difference between iselementpresent and isdisplayed ?
75. Can you test flash images in selenium ?
76. How do you verify an object presented in multiple pages in selenium ?
77. How to select the dropdown values in selenium ?
78. Does selenium support https protocols ?
79. How to get the third column data from Table ?
80. Per day how many scripts your writing and executing ?
81. Tell me difficulty’s in your project faced by you ?
82. which driver implementation will allow headless mode ?
83. How to perform drag and drop operation in selenium webdriver ?
84. How many frameworks are there .which to use.how will you deside that ?

85. what is page object model in selenium ?
86. what framework your using can you explain the framework ?
87. what are the challenges did you faced while automating the application ?
88. Explain your Roles and Responsibilities in your project ?
89. How to connect selenium to database ?
90. which tool did you use for reporting ?
91. why did you choose selenium in your project where we are having so many tesing tools ?
92. what is difference between javascript and javaprogram ?
93. Why should we go for javascript in selenium ?
94. What is the alternate way to send text into textbox of webpage with out using sendKeys() method ?
95. If any button is hidden/disabled then how to click on button using selenium ?
96. send one empty mail from your official mail id ?
97. How to login into any site if its showing any authentication popup for user name and pass ?
98. How do you launch IE/chrome browser?
99. How to perform right click using WebDriver?
100. How do you simulate browser back , forward and refresh?
101. What is the difference between ‘/’ and ‘//’ ?
102. How do you handle https website in selenium
103. What is the use of AutoIt tool ?
104. How to count the number of checkboxes checked in selenium webdriver ? or How to select multiple check box and verify ?

TestNg :
———–

105. What is TestNg ?What is the use.?
106. What is Annotation ? How many Annotations are there in TestNg ?
107. what are the different assertions or check points used in your script?
108. Can we run group of test cases using TestNG ?
109. I have 50 testcases Here i want to execute only 3 test cases without using testng groups?
110. How to run only failure test cases in testNg ?
111. What is the difference between before method and before class ?
112. What is Data provider ?
113. What is return type of Data provider ?
114. Difference between junit and TestNg ?
115. How to handle ajax application in selenium webdriver ?
116. How to capture the bitmaps in selenium ?How to capture screenshot in selenium webdriver ?
117. How to read the methods/functions from xml/xls files ?
118. What is the difference between include and exclude in selenium ?
119. How to execute single selected method in testng ?
120. what is the difference between packages and classes in Testng?
121. what is the difference between verify and assert command ?
122. what we go for Assertions ?What is Assertions?
123. Tell me login page script in testng?
124. what is difference between @parameters and @data provider in testng ?
125. Is it possible to write to multiple test cases in single class ?
126. Which problems are faced in Testng ?
127. How to create test suites in testng ?
128. what is the library file of testng ?
129. How to read and write the data from Excel file using apache poi.
130. What Is TestNG And use of testNg?
131. What Is the usage of testng.xml file?
132. What is the command used inside the .bat file to run the testng.xml fille ?

133. What is the command line we have to write inside a .bat file to execute a selenium project when we are using testng ?
134. TestNg i have some tests line

@test1
@test2
@test3
@test4
@test5

I want to run my execution order is
@test5
@test2
@test1
@test4
@test3