2

How to implement Data Driven methods in playwright using playwright/test typescript? How do you get external data(excel or csv) into script and drive multiple iterations with different data sets?

Prasad
  • 119
  • 1
  • 5
  • 13
  • 1
    Does this answer your question? [Playwright Typescript how to convert a CSV file in to JSON object and use that data in Script to perform data driven testing](https://stackoverflow.com/questions/70681398/playwright-typescript-how-to-convert-a-csv-file-in-to-json-object-and-use-that-d) – Yevhen Laichenkov Jan 19 '22 at 12:04
  • No It is not working for me. – Prasad Jan 19 '22 at 14:44
  • 1
    It depends what you want. Seems like you do not want to convert .csv to JSON. That is the most natural thing when working with TS. But if not just tell what you want, you know that your .csv must be some kind of object so y can use it for DDT. What kind of object you want if it is not JSON? – Gaj Julije Jan 19 '22 at 15:44
  • Did you get anywhere with this problem? – user1432181 Feb 21 '22 at 17:40
  • I tried using NPM modules to covert CSV format to Json, somehow nothing worked. I resolved it by writing custom method using typescript. – Prasad Feb 24 '22 at 13:40

0 Answers0