Skip to content
QiTASC.com / Steps and Compound Steps / Data Steps and Compound Steps /
Verify Results from Download/Upload Step Details
/ .. / .. /
Verify Results from...





Verify Results from Download/Upload Step Details

The results of executed Step Details are stored in the context and can be accessed using the verify step to check their results.

Verify the Download/Upload Step Details
Verify the Download Step Details
Verify the Upload Step Details

Verify the Download Step Details

The following download results can be queried and verified:

  • connectTimeoutSeconds - BigDecimal

  • dataVolumeAmount - BigDecimal

  • dataVolumeUnit - One of bytes, kB, MB, GB, KiB, MiB or GiB

  • durationSeconds - BigDecimal

  • inactivityTimeoutSeconds - BigDecimal

  • intervalLenMillis - BigDecimal

Syntax

1
verify <dataName Identifier>.<detail StepDetail> <operator Operator> <result Any>

Parameters

  • dataName - The name assigned to the data session

  • detail - The step detail to verify

  • operator - The operator used to check the result

    • May be one of >, >=, =, <=, <, or !=
  • result - The expected result

Example

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
Feature: DownloadTest
  Scenario: DownloadTest
    Given a phone as A:
     * of type Android

    And deferred, within 30 seconds, A disables data connections
    And within 30 seconds, A enables data connections
    And A starts a download from "http://testdata.qvie.qitasc.com/data/10MB" as MYDOWNLOAD:
    * it stops after 10 MB
    * it allows 7 reconnects

    And wait for 10 seconds
    And within 30 seconds, A expects download MYDOWNLOAD to finish
    And verify MYDOWNLOAD.dataVolumeAmount == 10

Verify the Upload Step Details

The following upload results can be queried and verified:

  • dataVolumeAmount - BigDecimal. The default is -1

  • dataVolumeUnit - One of bytes, kB, MB, GB, KiB, MiB or GiB

  • durationSeconds - BigDecimal

  • inactivityTimeoutSeconds - BigDecimal

  • reconnects - BigDecimal

Syntax

1
verify <dataName Identifier>.<detail StepDetail> <operator Operator> <result Any>

Parameters

  • dataName - The name assigned to the data session

  • detail - The step detail to verify

  • operator - The operator used to check the result

    • May be one of >, >=, =, <=, <, or !=
  • result - The expected result

Example

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
Feature: UploadTest
  Scenario: UploadTest
    Given a phone as A:
     * of type Android

    And deferred, within 30 seconds, A disables data connections
    And within 30 seconds, A enables data connections

    And A starts uploading random data to "http://testdata.qitasc.com/upload" as MYUPLOAD:
     * it stops after 11 kB
     * it allows 100 reconnects

    And verify MYUPLOAD.dataVolumeAmount == 11
    And verify MYUPLOAD.dataVolumeUnit == "kB"
    And verify MYUPLOAD.reconnects == 100
    And verify MYUPLOAD.inactivityTimeoutSeconds == 10

    And within 40 seconds, A expects upload MYUPLOAD to finish