hi,
If I'm writing a c# class withing ranorex project (basically to open a connection with sqlserver DB) how can i refer the global parameters within it.
Not via data binding in UI.
> Connection string is in a global parameter.
refering a global parameter withinn a class
Re: refering a global parameter withinn a class
Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
Ranorex explorer at Descartes Systems
Please add these details to your questions:
- Ranorex Snapshot. Learn how to create one >here<
- Ranorex xPath of problematic element(s)
- Ranorex version
- OS version
- HW configuration
Re: refering a global parameter withinn a class
Can't really figure out the "Object reference not set to an instance of an object" exception (NullReference).
Re: refering a global parameter withinn a class
I guess you started an individual module instead of entire TestSuite? Global Parameters are a part of Test Suite! So you must start the whole TestSuite, not just individual module!
Last edited by odklizec on Fri Jul 01, 2016 11:55 am, edited 1 time in total.
Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
Ranorex explorer at Descartes Systems
Please add these details to your questions:
- Ranorex Snapshot. Learn how to create one >here<
- Ranorex xPath of problematic element(s)
- Ranorex version
- OS version
- HW configuration
Re: refering a global parameter withinn a class
Ofcourse! Thanks for the hint. I actually knew that the context exists as such.