Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
User-Defined Environment Variables vs. Global Variables vs. DataTable Values
#1
Not Solved Question 
Hi,
My query is divided into 2 parts. The preconditions to my query are as follows:
- Application has 500+ fields for which data has to be filled. More than 100 scripts exist. More than 40 functions.
- ScriptName is also stored in DataTable and each script has different data corresponding to it stored in DataTable.
- DataTable has been imported in fnImportDatatable function.
- Each row in datatable has Script Name as Primary Key/Search Criteria to get current script's data row.


Now here are my queries:
1. Once the current row is set; "In the script" should the associated data be imported into environment variables or just variables? Which is better? Same data might be used/might not be used again in the script.

2. If your answer is "environment variables", then this approach of storing datatable values into environment variables, eliminates the parameterization of functions. Functions can now be called without any parameters as environment variables exist for all the data. Is this approach justified as an optimal solution to scripting with dynamic data?

Thanks,
Zeeshan
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Not able to get the list of items in Delphi Combobox Environment Object Raj Aryan Singh 3 1,957 02-04-2020, 12:32 AM
Last Post: Raj Aryan Singh
  Reading Global Sheet's DataTable Value Bhuvana 0 1,474 01-05-2020, 10:03 PM
Last Post: Bhuvana
  Error as Global Not defined while trying to retrieve value from Datatable siddharth1609 0 851 09-11-2019, 02:52 PM
Last Post: siddharth1609
  how to get relative path by using testdir environment variable Sathyaprasad 1 1,779 11-30-2017, 02:21 AM
Last Post: supputuri
  How to get input from the user in QTP? shanthiK 10 18,073 08-07-2017, 11:34 PM
Last Post: zunebuggy

Forum Jump:


Users browsing this thread: 1 Guest(s)