Forum Discussion

ronrhe's avatar
ronrhe
Contributor
14 years ago

Data driven test does noet seem to work

I am testing a web php application.

I made a keywordtest which works fine.

Now i want to make it datadriven with an excel file. (Celltype = standard)

But all i get is a type mismatch error.



textboxBedrijfsnaam   Click   47, 8, ...   Clicks at point (47, 8) of the 'textboxBedrijfsnaam' object.

textboxBedrijfsnaam   SetText   Variables.test['Bedrijf']   Sets the text KeywordTests.Test1.Variables.test('Bedrijf') in the 'textboxBedrijfsnaam' text editor.



In the tools/options/recording  I changed setText to Keys.

But it still records with setText. (I restarted my computer)



I tried different cell types in Excel but the problem remains.




2 Replies

  • cp_net's avatar
    cp_net
    Occasional Contributor
    Hi Ronald,



    Don't know if this helps, but I had similiar type mismatch problems while using CSV files generated from OpenOffice Calc. In this case, the same column had alpha input such as abc123 as well as numeric input as 123, and OpenOffice calc was treating them as text and numeric. So the solution was to select those columns with ambiguous types and set their format as text before exporting to CSV which was then used as input for data-driven tests.