Global Properties are project-level variables in ACCELQ, accessible across Actions and Scenarios. Use them to store application-level data like URLs, port numbers, or shared credentials that may only change occasionally.
They support environment-specific values, making it easy to manage configurations for different setups.
Examples
Environment-specific Global Property:
"Application URL" - This would have different values for different environments:
- Development: https://dev.myapp.com
- Testing: https://test.myapp.com
- Production: https://prod.myapp.com
Static Global Property:
"API Version Number" - This would remain the same across all environments:
- API Version Number: "v2.0"
Inline Editing
- You can directly hover over values, and update inline. To input multi line values, simply type Shift + Enter (windows), or Command + Enter (mac).
- You can also rename the global properties inline.
- "Any" in the App Environment column indicates that the property is not dependent on environment.
- Value in "Default" App Environment is used when a property is not explicitly defined for a given environment.
How to use Global Properties
Global Properties can be used in two key ways:
- Action Logic: Directly reference Global Properties in your Action logic to use consistent, centralized values across multiple test cases.
- Parameter Overriding in Scenarios: Use them to override step parameters in Scenarios where a fixed value (e.g., a common username or application URL) is required across all test cases.
Global Properties keep Action logic clean, avoid hardcoding, and centralize updates for quick, seamless changes to project-wide settings.
Learn more about Global Properties →
Comments
0 comments
Please sign in to leave a comment.