Professional Documents
Culture Documents
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
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();
}
}
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
eplay, How would you test a Market configuration? Are there cases for reuse? Give an example of test cases
Execution Steps
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.
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");
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");
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
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
mated tests. You have verified that your tests did pass and that the reporting of the results was correct.
}