Nothing Special   »   [go: up one dir, main page]

QA Engineer - Technical Assignment

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 6

Technical Assignment

Instructions:-

a) Total number of Questions- 14


b) Kindly give answers to the following questions on a separate sheet.
c) Answer the given questions in the appropriate word limit.
d) Coding assignments can be submitted separately. Use any programming language from java or
python to solve the assignment. Use the latest version of the required software and tools on
either windows/linux/mac.

Q1. Choose the correct difference between Retesting and Regression testing

a) Re-testing is running a test again; Regression testing looks for unexpected side effects

b) Re-testing looks for unexpected side effects; Regression testing is repeating those tests

c) Re-testing is done after faults are fixed; Regression testing is done earlier

d) Re-testing uses different environments, Regression testing uses the same environment

e) Re-testing is done by developers, Regression testing is done by independent testers

Q2. Select the valid Xpath locator for element with id as list1

a) By.xpath(“//input[id=’list1’]”)

b) By.xpath(“//input[‘list1’]”)

c) By.xpath(“//input[@id=’list1’]”)

d) By.xpath(“input[@id=’list1’]”)

Q3. Can the same testing code created for an Android application, work for an iOS application?
Choose the correct answer.

a) No, because automation commands for Android differs from iOS

b) Yes, as long as the element location strategy is the same

c) Yes, because all of the commands are translated to open wire JSON protocol

d) Yes, because Appium inspector records test scenario for any language
Q4. Which Type of testing identifies the breaking point of an application. How and why? (50-100
words)

a) Load Testing

b) Spike Testing

c) Concurrency Testing

d) Stress Testing

Q5. How would you compare two git commits and output results to a text file. write steps (if any)

Q6. How to merge a single file from one branch to another in git. write steps (if any)

Q7. According to you, which works best and why: Testing on Virtual OR Real Devices. (50-100
words)

Q8. How to test using multiple sessions on Appium? And How to test Android apps without
Appium? (50-100 words)

Q9. How will you do performance testing of APIs via Postman? Explain. (50-100 words)

Q10. How can low bandwidth/improper networks be tested on Appium and Selenium while
testing mobile/web apps? Explain. (50-100 words)

Q11. Explain different types of Automation Frameworks and their architecture? (50-100 words)

Q12. Choose the correct output and then explain it.

class Test

String str = "A";

void functionA()

try

{
str +="B";

functionB();

catch (Exception e)

str += "C";

void functionB() throws Exception

try

str += "D";

functionC();

catch(Exception e)

throw new Exception();

finally

str += "E";

str += "F";
}

void functionC() throws Exception

throw new Exception();

void display()

System.out.println(str);

public static void main(String[] args)

Test object = new Test();

object.functionA();

object.display();

Solution:-

a) ABDEF
b) ABDEC
c) ABDEFC
Q13. Coding Assignment :- Automate the following task on a mobile app or web app by using
python/java and Selenium/Appium and share the code files and video recording with the answers
of this test.

Task:-

1) Login into Twitter.

2) Once you login, Redirect to your favorite Twitter profile.

3) Print all the names of followers of that favourite twitter profile in csv/excel file.

(Tip : Find all "follow" buttons on screen", get all those followers as a List of object and print them in
csv/excel file)
Q14. In the following table, an Insurance plan is shown of an executive from a company.
Write a program to check for all the given cases and find the VALID applicable case.

Rule 1 Rule 2 Rule 3 Rule 4

Conditions

Age <21 years 21-29 years 30-50 years >50 years

Insurance Category A A or B B. C or D C or D

Actions

Premium Rs 1000 Rs 900 Rs 700 Rs 700

Excess Rs 2500 Rs 2500 Rs 5000 Rs 1000

a) 23 year old in insurance class A Premium is 900 and Excess is 2500


b) 51 year old in insurance class C Premium is 700 and Excess is 5000
c) 31 year old in insurance class B Premium is 700 and Excess is 2500
d) 43 year old in insurance class C Premium is 1000 and Excess is 1000.

You might also like