You are on page 1of 11

1.

       How would you test the application at a Platform level? Give an example of a Test Case (5p
Feature Name Test Summary
Case ID
Reward Mob_1 Verify that reward is
mechanism awarderd on gettting
winning score successfully.

Given a market chooses Gameplay, How would you test a Market configuration? Are there cases for reuse?
2
Feature Name Test Summary
Case ID
Reward Mob_2 Verify that claimed reward
mechanism can be used for different
market configurations like
Nintendo,Microsoft & Sony

3 What are your considerations for your automation framework and why
S.No Description

Handle scripts and data


i) separately

ii) Create libraries


iii) Follow coding standards

Offer high extensibility


iv) and Less maintanenace

Script/Framework version
v) control

Given that the market team has limited test automation resources, how would you design your framework
4 minimal work from the Market testing team to use and configure your framework?
S.No Description
Create wrapper methods for
1 libraries (if required)
2 Implement custom logger
Choose the right design
3 pattern
Separate Tests from
4 automation framework
Create a proper folder
5 structure for the code
Separate UI, Web Services,
business Logic, databases
6 (if any)
7 Build & CI

5 Write automation code to test the successful and unsuccessfullogin for the above using a language of your c

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
import org.testng.Assert;
import java.util.concurrent.TimeUnit;
public class Test {
    public static void main(String[] args) {
        System.setProperty("webdriver.chrome.driver",path_of_browser_driver);
        WebDriver driver = new ChromeDriver();
        String url = "http://jiravitalityservicing.com//";
        driver.get(url);
        driver.manage().window().maximize();
        driver.manage().timeouts().pageLoadTimeout(10, TimeUnit.SECONDS);
        WebElement email = driver.findElement(By.id(username"));
        WebElement password = driver.findElement(By.id("password"));
        WebElement loginButton = driver.findElement(By.id("login"));
System.out.println("Entering the email");
        email.clear();
        System.out.println("entering the password");
        password.clear();
        email.sendKeys("your_password");
        password.sendKeys("your_password");
        System.out.println("Clicking login button");
        loginButton.click();
        String title = "- Jiravitalityservicing.com/projects";
        String actualTitle = driver.getTitle();
        System.out.println("Verifying the page title has started");
        Assert.assertEquals(actualTitle,title,"Page title doesnt match");
        System.out.println("The page title has been successfully verified");
else
        System.out.println("User not logged in successfully");
WebElement browse = driver.findElement(By.linkText("browse"));
        System.out.println("Clicking on the browse element in the Jiravitalityservicing.com/projects");
       browse.click();
}
}

6   Youhave been conducting a quality review for your Script.


You have discovered that it has not been updated for three years.
The TAS functions properly and provides good coverage of the SUT; however, you want to ensure tha
What step should you consider in order to increase efficiency of the script?
A. Ensure consistent naming standards for new automation code
B. Make changes to the TAS in rapid succession to keep pace with leading edge practices
C. Ensure the latest libraries are incorporated into the script
D. Enlist a third party vendor to evaluate the current script
C. Ensure the latest libraries are incorporated into the script

7 Up until now you have provided automated testing for a stable SUT. Because of changing business demands, t
A. Improve script recovery to make it more fault-tolerant when API calls fail
B. Update the documentation for the script including its support for APIs
C. Improve the logging to capture the anticipated increase in defects due to API failures
D. Modify the adaptation layer in the Test Automation Architecture to enable the test scri
C. Improve the logging to capture the anticipated increase in defects due to API failures

8    You have executed an automated test suite for a product that was released to production. Althou
What should you do now to verify the validity of your tests?
A. Run tests that should fail and verify that they fail
B. Run tests that should pass and verify that they pass
C. Check that the post conditions of each test case are being verified correctly
D. Change your test data and run the tests again
C. Check that the post conditions of each test case are being verified correctly

9 6.      When implementing results reporting for test automation, what is a good way to allow the reade
A. Spreadsheets
B. Traffic lights
C. Detailed reports with percentages of completion
D. Database of results
A. Spreadsheets
you test the application at a Platform level? Give an example of a Test Case (5pt)
Execution Steps

1. Launch the app


2. Proceed in the gameplay till the reward is awarded for the winning score

eplay, How would you test a Market configuration? Are there cases for reuse? Give an example of test cases
Execution Steps

1. Launch the app


2. Proceed in the gameplay till the reward is awarded.
3.Claim the reward with different markets configurations like Sony market,
4. Try to use the same reward with Microsoft market .

s for your automation framework and why

Test scripts should be clearly separated from the input data store (e.g. XML, Ms-
Excel files, Flat files or Databases), so that no modifications are required to the test
scripts whenever data has to be changed.
A library should contain all reusable components and external connections such as
databases, generic functions, application functions etc.
In maintaining code uniformity, which makes it easier to interpret from developers.

The application should allow modification of existing features e.g. A reusable library
can be created, which would help in enhancing application features with minimal effort.

Versions of framework / scripts should be maintained either in a local repository or


versioning tool, which would help in easy monitoring of changes to the software code.

has limited test automation resources, how would you design your framework to ensure
et testing team to use and configure your framework?
st the successful and unsuccessfullogin for the above using a language of your choice.

.selenium.WebDriver;
.selenium.WebElement;
.selenium.chrome.ChromeDriver;

ncurrent.TimeUnit;

main(String[] args) {
perty("webdriver.chrome.driver",path_of_browser_driver);
ver = new ChromeDriver();
ttp://jiravitalityservicing.com//";

().window().maximize();
().timeouts().pageLoadTimeout(10, TimeUnit.SECONDS);
mail = driver.findElement(By.id(username"));
assword = driver.findElement(By.id("password"));
oginButton = driver.findElement(By.id("login"));
ntln("Entering the email");

ntln("entering the password");

s("your_password");
Keys("your_password");
ntln("Clicking login button");

- Jiravitalityservicing.com/projects";
tle = driver.getTitle();
ntln("Verifying the page title has started");
quals(actualTitle,title,"Page title doesnt match");
ntln("The page title has been successfully verified");

ntln("User not logged in successfully");


browse = driver.findElement(By.linkText("browse"));
ntln("Clicking on the browse element in the Jiravitalityservicing.com/projects");

ucting a quality review for your Script.


that it has not been updated for three years.
operly and provides good coverage of the SUT; however, you want to ensure that it is working as efficiently as possible.
u consider in order to increase efficiency of the script?
consistent naming standards for new automation code
hanges to the TAS in rapid succession to keep pace with leading edge practices
he latest libraries are incorporated into the script
third party vendor to evaluate the current script
braries are incorporated into the script

ed automated testing for a stable SUT. Because of changing business demands, the SUT will be updated to include several new features an
e script recovery to make it more fault-tolerant when API calls fail
the documentation for the script including its support for APIs
the logging to capture the anticipated increase in defects due to API failures
the adaptation layer in the Test Automation Architecture to enable the test script to test via the APIs
ture the anticipated increase in defects due to API failures

ed an automated test suite for a product that was released to production. Although your tests passed, there was a major failure in producti
now to verify the validity of your tests?
uld fail and verify that they fail
uld pass and verify that they pass
t conditions of each test case are being verified correctly
ata and run the tests again
ach test case are being verified correctly

ting results reporting for test automation, what is a good way to allow the reader to make a quick assessment of the progress of the test e

th percentages of completion
Expected Result

Reward is awarded for the winning score successfully.

n example of test cases


Expected Result

Reward is awarded for different markets configurations like Sony,Microsoft market.


orking as efficiently as possible.
T will be updated to include several new features and plug-ins that communicate via APIs. In what way should you update the script?

st via the APIs

r tests passed, there was a major failure in production in an area that is well covered by your automated tests. You have verified that your

ke a quick assessment of the progress of the test execution?


Actual Result Priority Review Execution Status Comments Tester Defect #
Status
Reward should be awarded High In review To be executed NA Gopal 1
for winning score
successfully.

Actual Result Priority Review Execution Status Comments Tester Defect #


Status
Reward should be awarded Medium In review To be executed NA Gopal 2
for different markets
configurations like
Sony,Microsoft market.
ay should you update the script?

mated tests. You have verified that your tests did pass and that the reporting of the results was correct.

    }

You might also like