This is a migrated thread and some comments may be shown as answers.

Multi-Level Tests: Passing data

3 Answers 30 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Richard
Top achievements
Rank 1
Richard asked on 14 Nov 2013, 07:11 AM
Hi,

I have a 'logon' test that I would like to use with many different tests. I would like to pass two parameters: "userName" and "password" to the "Logon" test from many another tests.

I have followed the "Data bound Test A calls Test B" instructions here: http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/data-driven-testing/multi-level-tests.aspx but it does not seem to work.

Setup {

Users.xlsx
UserId | Password
User01 | somePassword

HomeTest.tstest (Bound to dataset Users.xlsx):
Execute test 'Logon'

  • Logon.tstest (InheritParentDataSource is ticked):
    • Navigate to : 'https://[left this out for the purpose of security]' 
    • Enter text '' in 'UserNameText' - DataDriven: [$(UserId)]
      Enter text '*****' in 'PasswordPassword' - DataDriven: [$(Password)]
    • Click 'SubmitCredsSubmit'

} EndSetup

When I execute HomeTest.tstest nothing is entered in the 'username' or 'password' textboxes.
I was under the impression that "the data source definition for Test A will propagate down to Test B and be available for use by Test B", but this is not happening. Do I have to do anything special on the call "Execute test 'Logon'"?


3 Answers, 1 is accepted

Sort by
0
Accepted
Leon
Top achievements
Rank 1
answered on 14 Nov 2013, 05:13 PM
Richard,

Make sure your "test B" is data enabled as well.  I have forgot this many times and nothing happens in the test to tell you you are missing that.  Its in the same location where you set the Inherit Data property as well.  Hope that helps!

Leon
0
Richard
Top achievements
Rank 1
answered on 15 Nov 2013, 07:10 AM
Hi Leon, thanks that worked.

This should probably be added in the online instructions: http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/data-driven-testing/multi-level-tests.aspx
0
Boyan Boev
Telerik team
answered on 18 Nov 2013, 01:30 PM
Hello,

@Leon, thank you for your input and helping others, we really appreciate it. I have updated your Telerik points.

@Richard, if you need any additional help please do not hesitate to contact us again.

Thank you!

Regards,
Boyan Boev
Telerik
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
Tags
General Discussions
Asked by
Richard
Top achievements
Rank 1
Answers by
Leon
Top achievements
Rank 1
Richard
Top achievements
Rank 1
Boyan Boev
Telerik team
Share this question
or