08-25-2013, 02:28 PM
Hi
When it comes to tests, actions and the datatable:
1. All actions have an associated datatable with Global and Action tabs
2. Only the top level test (and its action) can access the Action tab (usually Action 1) that is associated with the test
3. Each reusable action access its local Action tab
4. QTP merges all the associated actions Global Tabs into a single global table
The merged global table is accessible to all the actions running in that test.
so - put the code more simply - DataTable ( "Sheet Column" , dtGlobalSheet ) will access the global table from any action,
Its the GetSheet part that picks Action over Global, or in mine dtGlobalSheet )
Hope this helps.
greg
When it comes to tests, actions and the datatable:
1. All actions have an associated datatable with Global and Action tabs
2. Only the top level test (and its action) can access the Action tab (usually Action 1) that is associated with the test
3. Each reusable action access its local Action tab
4. QTP merges all the associated actions Global Tabs into a single global table
The merged global table is accessible to all the actions running in that test.
so - put the code more simply - DataTable ( "Sheet Column" , dtGlobalSheet ) will access the global table from any action,
Its the GetSheet part that picks Action over Global, or in mine dtGlobalSheet )
Hope this helps.
greg