Skip to main content
deleted 298 characters in body; added 2 characters in body
Source Link
Vishal Aggarwal
  • 5.6k
  • 2
  • 20
  • 37

I would suggest to use Protractor instead of Selenium as its angularJS application and use 'userRole' just as another test data Use Protractor instead of Selenium if its angularJS application and use 'userRole' just as another test data in a data driven test with different userusers as iterations.

Also in test data rows , you may define each UI field as column and pass its expected state as value for the given user like disabled, enabled,visible etc in the cell.

So, overall you'll will have one data driven test with multiple users as iterations in the data table.

I would suggest to use Protractor instead of Selenium as its angularJS application and use 'userRole' just as another test data in a data driven test with different user as iterations.

Also in test data rows , you may define each UI field as column and pass its expected state as value for the given user like disabled, enabled,visible etc in the cell.

So, overall you'll will have one data driven test with multiple users as iterations in the data table.

Use Protractor instead of Selenium if its angularJS application and use 'userRole' just as another test data in a data driven test with different users as iterations.

deleted 103 characters in body; deleted 5 characters in body
Source Link
Vishal Aggarwal
  • 5.6k
  • 2
  • 20
  • 37

I would suggest to use Protractor instead of Selenium as its angularJS application and use 'userRole' just as another test data in a data driven test with different user as iterations.

AsAlso in test data rows , you can pass it in a test so that specific user credentials will be picked for loginmay define each UI field as column and assertions can be performedpass its expected state as desired accordinglyvalue for the given user like disabled, enabled,visible etc in the cell.

Also in chromeSo, you can pass credentials directly embeddedoverall you'll will have one data driven test with multiple users as iterations in the URL itselfdata table.

{
    "appURL": "http://testAppURL/WebUI/#/home",
    "AdminRoleURL": "http://adminUserName:Password@testAppURL/WebUI/#/home",
    "UserRoleURL": "http://userUserName:Password@testAppURL/WebUI/#/home",
}

I would suggest to use Protractor as its angularJS application and use 'userRole' just as another test data .

As test data, you can pass it in a test so that specific user credentials will be picked for login and assertions can be performed as desired accordingly.

Also in chrome, you can pass credentials directly embedded in the URL itself.

{
    "appURL": "http://testAppURL/WebUI/#/home",
    "AdminRoleURL": "http://adminUserName:Password@testAppURL/WebUI/#/home",
    "UserRoleURL": "http://userUserName:Password@testAppURL/WebUI/#/home",
}

I would suggest to use Protractor instead of Selenium as its angularJS application and use 'userRole' just as another test data in a data driven test with different user as iterations.

Also in test data rows , you may define each UI field as column and pass its expected state as value for the given user like disabled, enabled,visible etc in the cell.

So, overall you'll will have one data driven test with multiple users as iterations in the data table.

added 1 character in body
Source Link
Vishal Aggarwal
  • 5.6k
  • 2
  • 20
  • 37

I would suggest to use Protractor as its angularJS application and use 'useRole''userRole' just as another test data .

As test data, you can pass it in a test so that specific user credentials will be picked for login and assertions can be performed as desired accordingly.

Also in chrome, you can pass credentials directly embedded in the URL itself.

{
    "appURL": "http://testAppURL/WebUI/#/home",
    "AdminRoleURL": "http://adminUserName:Password@testAppURL/WebUI/#/home",
    "UserRoleURL": "http://userUserName:Password@testAppURL/WebUI/#/home",
}

I would suggest to use Protractor as its angularJS application and use 'useRole' just as another test data .

As test data, you can pass it in a test so that specific user credentials will be picked for login and assertions can be performed as desired accordingly.

Also in chrome, you can pass credentials directly embedded in the URL itself.

{
    "appURL": "http://testAppURL/WebUI/#/home",
    "AdminRoleURL": "http://adminUserName:Password@testAppURL/WebUI/#/home",
    "UserRoleURL": "http://userUserName:Password@testAppURL/WebUI/#/home",
}

I would suggest to use Protractor as its angularJS application and use 'userRole' just as another test data .

As test data, you can pass it in a test so that specific user credentials will be picked for login and assertions can be performed as desired accordingly.

Also in chrome, you can pass credentials directly embedded in the URL itself.

{
    "appURL": "http://testAppURL/WebUI/#/home",
    "AdminRoleURL": "http://adminUserName:Password@testAppURL/WebUI/#/home",
    "UserRoleURL": "http://userUserName:Password@testAppURL/WebUI/#/home",
}
Source Link
Vishal Aggarwal
  • 5.6k
  • 2
  • 20
  • 37
Loading