Forum Discussion

Lee_M's avatar
Lee_M
Community Hero
5 years ago
Solved

Region Checkpoints in Data Driven loops

I have a region checkpoint that works as expected.   I  want to include this checkpoint in a Data Driven Loop but the operation (to check "CAD") would be a dynamic variable in the look and have a...
  • ebarbera's avatar
    5 years ago

    Lee_M 

     

    You will first have to set up 2 Project level variables. 

    ebarbera_0-1617907075241.png

    The spreadsheet variable should contain a column with the names of the images from the regions section of TestComplete.

    ebarbera_1-1617907164975.png 

    ebarbera_2-1617907185358.png

     

    Next you will have to add the following steps to your keyword test - inside the datadriven loop:

    ebarbera_3-1617907261366.png

    Set Variable Value:

    ebarbera_4-1617907316890.pngebarbera_5-1617907337513.png

    Code Snippet : Regions.Items(Project.Variables.Var1).Check(Aliases.browser.pageEvaluateFunctionTestcomplete.panel)

     

    Hopefully this helps - let me know if you have any additional questions.