Use .JSON and .ts file as test data source for protractor typescript e2e

preview_player
Показать описание
#qavbox_protractor_e2e

This video will explain, How to
Read .json & .ts file as test data source.
Use this test data in a page object model or any kind of framework.

Рекомендации по теме
Комментарии
Автор

Excellent way of explanation.. Thank u

RajuSingh-ltcd
Автор

I would use .ts instead of.JSON for keeping the Test Data since it's more flexible - you can use enums and pass variables there.

tarastester
Автор

If you want to import Json file with relative path. Include resolveJsonModule as true under compilerOptions in tsconfig.json

lokeshchitturi
Автор

hi, can you please pass array in the JSON file. please take an example where u can pass multiple data in a method

rohinikannan
Автор

Nice Explanation, i have one question, if i have to run same test cases with multiple data, how to do that like "customers" :{
"firstname" : "John",
"lastname" : "Carry",
"postalcode" : "87654"
}
{
"firstname" : "test",
"lastname" : "test3",
"postalcode" : "tyu"
}

deepaknarang
Автор

Post typescript 2.9 we need not do typings can you explain without that, Ive tried modifying tsconfig but it throws error on import statement

spidyniks
Автор

Please use Jasmine Data Providers -- using ()

rohinikannan