Skip to content

Instantly share code, notes, and snippets.

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.example</groupId>
<artifactId>appium-bitrise</artifactId>
<version>1.0-SNAPSHOT</version>
@dannyshain
dannyshain / Ifs2.java
Last active September 10, 2021 00:30
If (condition) {
//some code here
}
If (condition) {
//some code here
}
else {
//some other code here
}
try {
//line of code that throws NoSuchElementException
//line of code that throws IOException
//line of code that throws FileNotFoundException
//too much more code
}
catch (Exception e) {
}
try {
//some Selenium code here
fail("The exception was not thrown!");
}
catch (NoSuchElementException e) {
//some other code to execute
}
try {
//some Selenium code here
}
catch (NoSuchElementException e) {
//some other code to execute
}
Ability: Zero Bank - Purchase foreign currency cash
Scenario Template: Buy multiple foreign currencies
Given I am in the Purchase Foreign Currency page
And I select the currency type as "<currencyType>"
When I try to calculate the conversion cost for "<usdAmount>" USD
Then I should be displayed with the conversion amount with "<currencyType>"
Scenarios:
Feature: Zero Bank - Purchase foreign currency cash
The Zero Bank app has a feature to buy foreign currency cash if you are travelling to a specific country.
This feature will help the travellers to purchase the native currency much earlier and faster.
Showing the current selling rate will help travellers to understand the conversion rate for one local currency to USD.
Rule: The conversion amount will depend on the daily sell rate of the selected currency
Example: Displaying the current selling rate
Feature: Zero Bank - Purchase foreign currency cash
In order to purchase foreign currency
As a valid customer of Zero Bank
I want to have a feature to purchase different types of currencies
Scenario: Calculate conversion cost from USD to GBP
Given I am in the Purchase Foreign Currency page
And I select the currency type as "Great Britain (pound)"
When I try to calculate the conversion cost for "100" USD
describe('Webdriver.io + Jasmine', () => {
it('should select an ingredient from the list', async () => {
await browser.url(`https://kitchen.applitools.com/ingredients/select`);
await (await $('#spices-select-single')).selectByAttribute('value', 'garlic');
expect(await (await $('#spices-select-single')).getValue()).toBe('garlic');
});
});