Skip to content
QiTASC.com / Data Steps and Compound Steps /
Enable and Disable Data and WiFi Connection Steps
/ .. /
Enable and Disable Data and...





Enable and Disable Data and WiFi Connection Steps

Data or WiFi must be enabled before using download or upload Steps.

Data and WiFi Connection Steps
Enable and Disable Data Connections
Enable and Disable WiFi Connections
Verify that Enable Data Fails

Enable Data Connections

This Step enables mobile data.

Syntax

1
within <time Number> seconds, <name Identifier> enables data connections

Parameters

  • time - The number of seconds

  • name - The name assigned to the phone

Example

1
And within 20 seconds, A enables data connections

This Step is eligible for:

  • Timed

  • Deferred

Disable Data Connections

Mobile data should be disabled at the end of the scenario to avoid incurring high charges.

Syntax

1
within <time Number> seconds, <name Identifier> disables data connections

Parameters

  • time - The number of seconds

  • name - The name assigned to the phone

Example

1
2
3
And within 20 seconds, A enables data connections
And within 40 seconds, A opens the following url "http://www.google.com"
And within 20 seconds, A disables data connections

Enable WiFi Connections

This Step enables WiFI connections for phones connecting to WPA/WPA2 secured networks.

Syntax

1
within <time Number> seconds, <name Identifier> enables wifi connection

Parameters

  • time - The number of seconds

  • name - The name assigned to the phone

Example

1
And within 5 seconds, A enables wifi connection

This Step is eligible for:

  • Timed

  • Deferred

Specifying the WiFi Network

To connect to a WiFI network, its name and password must be specified. This can be a constant value or a context object.

Syntax

1
2
3
within <time Number> seconds, <name Identifier> connects to wifi network:
  *  with SSID <networkName StringOrContextObject>
  *  with password <password StringOrContextObject>

Parameters

  • time - The number of seconds

  • name - The name assigned to the phone

  • networkName - The name of the WiFi network to connect to

  • password - The password to the WiFi network

Example

1
2
3
Then within 10 seconds, A connects to wifi network:
        * with SSID "home"
        * with password wifi.home.pass

This Step is eligible for:

  • Timed

  • Deferred

Disable WiFi Connections

The WiFi connection should be disabled at the end of the scenario.

Syntax

1
within <time Number> seconds, <name Identifier> disables wifi connection

Parameters

  • time - The number of seconds

  • name - The name assigned to the phone

Example

1
Then deferred, within 5 seconds, A disables wifi connection

This Step is eligible for:

  • Timed

  • Deferred

Verify that Enable Data Fails

The following Step verifies that the phone cannot connect to the data network after the enables data Step.

Note: This Step leaves the setting enabled. If data should be disabled after the scenario, the deferred disable data Step must be used before the data enable fails Step.

Syntax

1
within <time Number> seconds, <name Identifier> enables data connections, but it fails

Parameters

  • time - The number of seconds

  • name - The name assigned to the phone

Example

1
2
And deferred, within 30 seconds, A disables data connections
And within 30 seconds, A enables data connections, but it fails