Download Steps¶
In addition to the data downloading compound steps, the following can be used in data-related test cases. Certain steps may be timed or deferred.
Note: Before downloading any data, the phone(s) must be connected to the internet via a WiFi or mobile data network.
Additional Download Steps |
---|
Browsing Steps |
Configuring APNs |
Browsing ¶
Open URL¶
Download content from any web location.
Syntax
1 | within <time Number> seconds, <id Identifier> opens the following url <url String> |
-
time - The number of seconds
-
id - The phone's unique identifier
-
url - The webpage's URL
Example
1 | And within 10 seconds, A opens the following url "http://testdata.qitasc.com/data/" |
Cannot Open URL¶
Check download from URL to be refused. Step can be used to verify data connection is turned off.
Syntax
1 | within <time Number> seconds, <id Identifier> cannot open the following url <url String> |
Parameters
-
time - The number of seconds
-
id - The phone's unique identifier
-
url - The webpage's URL
Example
1 | And within 10 seconds, A cannot open the following url "http://testdata.qitasc.com/data/" |
These steps are eligible for:
- Timed
Configuring APNs ¶
The APN, the MCC and MNC are all required to configure an APN. If MCC and MNC are not given, the MCC and MNC of the SIM card will be used instead.
Syntax
1 | <phone Identifier> configures its apn to name=<apnName String> apn=<url String> |
Parameters
-
phone - The name assigned to the phone
-
apnName - The name assigned to the APN
-
url - The APN's URL
Example
1 | And A configures its apn to name="YourChosenName" apn="testnetwork.com" |
Syntax
1 2 | <phone Identifier> configures its apn to name=<apnName String> apn=<url String> mcc=<mcc String> mnc=<mnc String> |
Parameters
-
phone - The name assigned to the phone
-
apnName - The name assigned to the APN
-
url - The APN's URL
-
mcc - The mobile country code
-
mnc - The mobile network code
Example
1 | And A configures its apn to name="YourChosenName" apn="testnetwork.com" mcc="232" mnc="01" |
Note: There are no blanks between parameters and their equal sign and values.
These steps are eligible for:
-
Timed
-
Deferred