This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
If (condition) { | |
//some code here | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
If (condition) { | |
//some code here | |
} | |
else { | |
//some other code here | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) { | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try { | |
//some Selenium code here | |
fail("The exception was not thrown!"); | |
} | |
catch (NoSuchElementException e) { | |
//some other code to execute | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try { | |
//some Selenium code here | |
} | |
catch (NoSuchElementException e) { | |
//some other code to execute | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'); | |
}); | |
}); |