0% found this document useful (0 votes)
40 views9 pages

Framework

hi

Uploaded by

MEERA SUPERSTORE
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
40 views9 pages

Framework

hi

Uploaded by

MEERA SUPERSTORE
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

Cucumber:

QUESTIONS(Theory):
1.What is cucumber?
2.What language is used by Cucumber?
3.What is meant by a feature file?
4.What is the purpose of Scenario Outline in Cucumber?
5.What is the purpose of Step Definition file in Cucumber?
6.What are the major advantages of Cucumber framework?
7.What is the limit for the maximum number of scenarios that can be included in the feature
file?
8.What symbol is used for parameterization in Cucumber?
9.What is the purpose of Examples keyword in Cucumber?
10.What is the purpose of Cucumber Options tag?
11.What is the meaning of TestRunner class in Cucumber?
12.What is the starting point of execution for feature files?
13.What is the use of glue property under Cucumber Options tag?
14.What is the maximum number of steps that are to be written within a scenario?
15.What are the difference between Jbehave and Cucumber?
16.What is the difference between BDD and TDD?
17.What are the two files required to run a cucumber test?
18.What is the two main purpose of using Gherkin?
19.What are the keywords used in Feature file?
20.What is the difference between Given, When, Then steps in feature file?
21.Explain background in feature file
22.What Is Cucumber tag,plugin,glue,monochrome,strict,feature, Dry Run?
23.How To Generate Cucumber Execution Reports?
24.How To Run A Particular Scenario From A Feature File ?
25.What are before, after, beforeStep and afterStep hooks?
26.How to Run Cucumber tests in parallel?

QUESTIONS(Practiacl):
QUESTION 1:
URL : https://www.facebook.com/
NOTE: Create a feature file for facebook login page.

QUESTION 2:
URL : https://demoqa.com/registration/
NOTE: Create a feature file for the firstname and lastname.

QUESTION 3:
URL : https://demoqa.com/registration/
NOTE: Create a feature file for registration form.

QUESTION 4:
URL : https://www.facebook.com/
NOTE: Execute the feature file of login page with one scenario.

QUESTION 5:
URL : https://www.facebook.com/
NOTE: Execute the feature file of login page with one scenario outline
QUESTION 6:
URL : https://demoqa.com/registration/
NOTE: Execute feature file for registration form with one scenario.

QUESTION 7:
URL : https://demoqa.com/registration/
NOTE: Execute feature file for registration form with one scenario outline.

QUESTION 8:
URL : https://www.facebook.com/
NOTE: Execute the feature file of login page with one scenario and execute with
plugin,tags,monochrome run with components.

QUESTION 9:
URL : https://demoqa.com/registration/
NOTE: Execute the feature file for registration with scenario outline and execute with some
specific scenario.

QUESTION 10:
URL : https://demoqa.com/registration/
NOTE: Execute the feature file for registration with one scenario and execute with
plugin,monochrome run with components.

QUESTION 11:
URL : https://www.facebook.com/
NOTE: Execute the feature file of login page with one scenario and you have to take the
input from excel sheet.

QUESTION 12:
URL : https://demoqa.com/registration/
NOTE: Execute the feature file for registration with one scenario and you have to take the
input from excel sheet.

QUESTION 13:
URL : https://demoqa.com/registration/
NOTE: Generate the scenario for each textbox in the same feature file and execute with
glue,tags,plugin run with components.

QUESTION 14:
URL : https://www.facebook.com/
NOTE: Execute the feature file for registration with one scenario by using data driven and
POM framework.

QUESTION 15:
URL : https://demoqa.com/registration/
NOTE: Execute the feature file for registration with one scenario by using data driven and
POM framework.
QUESTION 16:
URL : https://www.facebook.com/
NOTE: Generate the scenario for registration page and login page in one feature file and
execute with glue,tags,plugin runwith components.

QUESTION 17:
URL : https://demoqa.com/registration/
NOTE: Generate the scenario for registration page and login page in one feature file and
execute with glue,tags,plugin runwith components.

QUESTION 18:
URL : https://www.facebook.com/
NOTE: Generate the scenario for registration page and login page in one feature file and
execute with glue,plugin,dryrun,monochrome runwith components and also use Datadriven
and POM framework.

QUESTION 19:
URL : https://demoqa.com/registration/
NOTE: Generate the scenario for registration page and login page in one feature file and
execute with glue,plugin,strict,monochrome runwith components and also use Datadriven and
POM framework.

JUNIT
QUESTIONS(Theroy)
1. What is JUnit?
2. What is Unit Testing?
3. what are all the annotations available in JUnit?
4. Explain what is ignore test in JUnit?
5. Explain the test execution order?
6. what is the difference between @BeforeClass and @Before
7. what is the difference between @AfterClass and @After
8. can we able to use main method in JUnit?
9. Is it possible to generate report using JUnit?
10. what is the use of annotations?
11. What is the use of @Test annotation?
12. What does Assert class?
13. what is the difference between Assert and verify?
14. What are all the methods available in assert class?
15. Is it possible to group the test cases?
16. Is it possible to re-run the failed test cases in JUnit? if yes, How will you do?
17. Can we change return type of JUnit test method from void to some other type?
18. How will you handle exception in JUnit?
19. How @Test annotation is used for testing exceptions?
20. Which Is the latest version of JUnit.
21. How will you set the timeout in test cases
22. What are different assertions supported by JUnit?
23. How to create and run JUnit test suite for selenium WebDriver?
24. For what purpose, assertTrue and assertFalse assertions are used?
25. Can you give me example of JUnit assertEquals assertion?
QUESTIONS(Practical)
QUESTION 1
URL : https://www.facebook.com/
NOTE: Enter the username and password and verify whether the input data is correct or not
by using junit framework.

QUESTION 2
URL : https://www.redbus.in/
NOTE: Click signin and enter the email and password and verify whether the input data is
correct or not by using junit framework.

QUESTION 3
URL : https://demoqa.com/registration/
NOTE: Give the details and register the form and verify whether the input data's is correct or
not by using Junit framework & POM framework.

QUESTION 4
URL : https://www.flipkart.com/account/login
NOTE: Enter the email and password and verify whether the input data is correct or not by
using junit framework & POM framework.

QUESTION 5
URL : https://demoqa.com/registration/
NOTE: Create a project in maven and register the form by using POM & Junit framework
and get the input data from excel sheet.

QUESTION 6
URL : http://www.adactin.com/HotelApp/
NOTE: Book a room by using POM & Junit framework and print the order no generated.

QUESTION 7
URL : http://www.adactin.com/HotelApp/
NOTE: Book a room by using POM ,Junit framework and get the input data from excel sheet
and update the generated order no in excel.

QUESTION 8
URL : http://www.adactin.com/HotelApp/
NOTE: Create a project in maven and register the form by using POM & Junit framework
and get the input data from excel sheet and update the generated order no in excel.

(POM) PAGE OBJECT MODEL


QUESTIONS(Theory)
1.What is mean by POM?
2.What are the types of POM?
3.What is meant by Annotations?
4.What are the page factory Annotations?
5.What is mean by pojo class?
6.How will you generate the pojo class?
7.Write the folder Structure used in POM?
8.What is the difference between @FindBys and @FindAll?
9.What is the use of POM?
10.What are the use of @cacheLookup?

QUESTIONS(Practical)
QUESTION 1
URL : https://www.facebook.com/
NOTE: Enter the username and password by using POM framework.

QUESTION 2
URL : https://demoqa.com/registration/
NOTE: Give the details to register the demoqa form by using POM framework.

QUESTION 3
URL : http://www.greenstechnologys.com/
NOTE 1 : In home page scrolldown print the last line "greens technology overall reviews"and
again scrollup and print the first line "NO 1 software training institute....".

NOTE 2 : Click certificaion and then click selenium course content.In that page print the
paragraph below testimonial and print title selenium.

NOTE 3 : Click course(mouse Over Action) and then click java training(mouse over action)
and then click core java training.
scroll down and print the line "Java training Reviews from Anitha"

NOTE 4 : Click career and scrolldown till the end and print the email displayed at last.

NOTE 5 : Click testimonial and print the mobile number displayed in address and scrolldown
and print the last line"Thank you very much for your help and further help needed. and my
special thanks to Mr. Sandeep"

NOTE 6 : Click Contact Us and print the line "Our Main Branches In Chennai" and
scrolldown and then print "Copyright © 2018 Greens Technology. All rights reserved."

QUESTION 4
URL : https://demoqa.com/registration/
NOTE: Register the form by using POM and data driven framework.

QUESTION 5
URL : http://www.adactin.com/HotelApp/
NOTE: Book a room by using POM and print the order no generated.

QUESTION 6
URL : http://www.adactin.com/HotelApp/
NOTE: Book a room by using POM and data driven framework and update the order no
generated in excel.
TESTNG
QUESTIONS(Theroy)
1. What is TestNG?
2. What is the difference between JUnit and TestNG?
3. What is the difference between TestNG V3 and V4?
4. What are all the annotations available in TestNG?
5. Explain the Execution order in TestNG?
6. How will you prioritize the test case?
7. If you set two methods same priority means, which method execute first?
8. what is the default method priority?
9. what is the latest TestNG version?
10. what is TestNG suite?
11. Why we are using TestNG.xml file?
12. How will you group the test cases in testng suite?
13. How will you pass the value using parameter?
14. What is @optional annotation?
15. what is the use of @dependsOnMethod annotation?
16. what is the use of @dependsOnGroup annotation?
17. What is TestNG Assert and list out common TestNG Assertions?
18. What is Hard Assert in TestNG?
19. What is Soft Assert in TestNG?
20. How to run test cases in parallel using TestNG?
21. How to exclude a particular test method from a test case execution?
22. How to disable a test case in TestNG ?
23. What are the different ways to produce reports for TestNG results?
24. What is the use of @Listener annotation in TestNG?
25. What is the use of @Test(invocationCount=x)?
26. What is the use of @Test(threadPoolSize=x)?
27. What are @Factory and @DataProvider annotation?
28. How to re-run the failed test cases?

QUESTIONS(Practical)
QUESTION 1
URL : https://www.facebook.com/
NOTE: Enter the username and password and verify whether the input is correct or not by
using Testng framework.

QUESTION 2
URL : https://www.redbus.in/
NOTE: Click signin and enter the email and password and verify whether the input are
correct or not by using Testng framework.

QUESTION 3
URL : https://demoqa.com/registration/
NOTE: Give the details and register the form and verify whether the input are correct or not
by using Testng framework and access the locator by using POM framework.

QUESTION 4
URL : https://www.flipkart.com/account/login
NOTE: Enter the email and password and verify whether the input are correct or not by using
Testng framework,POM framework.

QUESTION 5
URL : https://demoqa.com/registration/
NOTE: Register the form by taking the input from excel sheet(DataDriven) and use POM
framework and also you have to create a project in maven and verify whether the input taken
is correct or not by using Testng ,POM framework.

QUESTION 6
URL : http://www.greenstechnologys.com/
NOTE: Lanuch this website parallel in chrome,firefox,InternetExplorer browser.

QUESTION 7
URL : https://www.flipkart.com/account/login
NOTE: Write test method for enter username and password and execute parallel in
chrome,firefox,InternetExplorer browser.

QUESTION 8
URL : http://www.greenstechnologys.com/
NOTE: Lanuch the browser in chrome and generate a report for that.

QUESTION 10
URL : https://demoqa.com/registration/
NOTE: Write some failed test case and you have to re-excute that failed test case and
generate report that.

QUESTION 11
URL : https://www.facebook.com/
NOTE: Write a test method for entering email and password based on groups and execute it
based on groups.

QUESTION 12
URL : https://demoqa.com/registration/
NOTE: Write seperate test case for each textbox based on groups and execute it based on
groups.

QUESTION 13
URL : https://demoqa.com/registration/
NOTE: Write seperate test case for each textbox and you have to re execute the failed test
case and generate the report for that.

QUESTION 14
URL : https://mail.google.com/
NOTE: Open Gmail application to perform LogIn which takes the two string argument as
Username & Password as parameter using TestNG Annotation.

QUESTION 15
URL : https://mail.google.com/
NOTE: Open the Gmail application , Define the method credentials() which is defined as a
Dataprovider using the annotation.
This method returns array of object array.Add a method test() to your DataProviderTest class.
This method takes two strings
as input parameters. Add the annotation @Test(dataProvider = “Authentication”) to this
method. The attribute dataProvider is
mapped to “Authentication”.

DATA DRIVEN

QUESTIONS(Theory)
1.What is mean by DataDriven?
2.What are the format available in Excel to read?
3.What are the Row and Column size of .Xls and .xlsx?
4.What are the jar file available to read/write in Excel sheet?
5.What is the use of FileInputStream?
6.What is mean by Workbook?
7.Whether Workbook is an Interface or class?
8.What is the method available to get particular sheet?
9.What is the purpose of getPhysicalNumberOfCells()?
10.What method is used to get particular Row?
11.What method is used to get particular cell?
12.What is the purpose of getPhysicalNumberOfRows()?
13.What is the purpose of getCellType()?
14.What are the possible output given by getCellType()?
15.What is the purpose of getStringCellValue() and its return type?
16.What is the purpose of getNumericCellValue() and its return type?
17.What method is used to replace the cell value?
18.What are the purpose of FileOutputStream?
19.How will you write data in Workbook?
20.How will you create new Sheet, Row, Cell?
21.What is the difference between .xls and .xlsx?
22.What is the difference between HSSF & XSSF Workbook?
23.What is the difference between jxl and apache POI jar file?

QUESTIONS(Practical)

Details for question 1 to 3


Create excel sheet with details of 10 students name and courses.

QUESTION 1
NOTE: Find the Total number of Rows and Total number of cells in excel sheet.

QUESTION 2
NOTE: Print all the data present in excel sheet.

QUESTION 3
NOTE: Insert one new row in the excel sheet.
QUESTION 4
URL: https://demoqa.com/registration/
NOTE: Create an excel sheet with all required details for registration.

QUESTION 5
URL: http://www.adactin.com/HotelApp/
NOTE: Create an excel sheet with all details required for Hotel Booking.

QUESTION 6
URL : https://www.facebook.com/
NOTE: Create an excel sheet for facebook email and password.
Login in to facebook by getting the input data from excel sheet using DataDriven and
execute in maven.

QUESTION 7
URL : https://www.facebook.com/
NOTE: Create an excel sheet for facebook email and password.
Create a project in maven.
Login in to facebook by getting the input data from excel sheet.
Update the successful login or error message generated after login in excel sheet using
DataDriven.

QUESTION 8
URL: https://demoqa.com/registration/
NOTE: Create an excel sheet with all required details for registration.
Register the form by getting the input data from excel sheet using DataDriven and
execute in maven.

QUESTION 9
URL: http://www.adactin.com/HotelApp/
NOTE: Create an excel sheet with all details required for Hotel Booking.
Book a hotel using above url by getting the input data from excel sheet.

QUESTION 10
URL: http://www.adactin.com/HotelApp/
NOTE: Create an excel sheet with all details required for Hotel Booking.
Create a maven project.
Book a hotel using above url by getting the input data from excel sheet.
Update the order No generated after hotel booking in excel sheet using Data Driven.

QUESTION 11
URL: https://my.naukri.com/account/register/basicdetails
NOTE: Create an excel sheet with all details required for registration.
Create a maven project.
Register a form in above url by getting the input data from excel sheet.

You might also like