*** Variables ***

${count} =   ${40}       # use a multiple of 40

*** Settings ***

Resource  cumulusci/robotframework/CumulusCI.robot
Resource        robot/Cumulus/resources/NPSP.robot
Suite Setup      Run Keywords    Clear DataImport Records   AND Generate Data

*** Keywords ***
Clear DataImport Records
    Run Task Class  cumulusci.tasks.bulkdata.DeleteData   objects=npsp__DataImport__c

Generate Data
    Run Task Class   tasks.generate_and_load_data.GenerateAndLoadData
    ...                 num_records=${count}
    ...                 mapping=datasets/bdi_benchmark/mapping-CO.yml
    ...                 data_generation_task=tasks.generate_bdi_CO_data.GenerateBDIData_CO
    ...                 database_url=sqlite:////tmp/temp_db.db

*** Test Cases ***

Import a data batch via the API
    Batch Data Import   1000    Data Import Field Mapping
    @{result} =   Salesforce Query  npsp__DataImport__c  
    ...           select=COUNT(Id)
    ...           npsp__Status__c=Imported
    Should Be Equal     ${result}[0][expr0]     ${count}

*** Variables ***

${count} =   ${10000}       # use a multiple of 40

*** Settings ***

Resource  cumulusci/robotframework/CumulusCI.robot
Resource        robot/Cumulus/resources/NPSP.robot
Suite Setup      Run Keywords    Clear DataImport Records   AND Generate Data

*** Keywords ***
Clear DataImport Records
    Run Task Class  cumulusci.tasks.bulkdata.DeleteData   objects=npsp__DataImport__c

Generate Data
    Run Task Class   tasks.generate_and_load_data.GenerateAndLoadData
    ...                 num_records=${count}
    ...                 mapping=datasets/bdi_benchmark/mapping-CO.yml
    ...                 data_generation_task=tasks.generate_bdi_CO_data.GenerateBDIData_CO

*** Test Cases ***

Import a data batch via the API
    Batch Data Import   1000    Data Import Field Mapping

    @{result} =   Salesforce Query  npsp__DataImport__c  
    ...           select=COUNT(Id)
    ...           npsp__Status__c=Imported

    Should Be Equal     ${result}[0][expr0]     ${count}

Fix count and get rid of debugging URL.
Fix count and get rid of debugging URL.

SalesforceFoundation/Cumulus,SalesforceFoundation/Cumulus,SalesforceFoundation/Cumulus,SalesforceFoundation/Cumulus