Hi
I have created properties of two objects as variables in repository
I have used those objects in the below "Sample" funtion(which is not inside the recording module)
Calling the function in the Recoring module from the .cs file
I had given the values for those variable through an excel sheet via binding, Script is taking those value from that excel sheet, but its not putting those variable values to the variables
Note: The script is putting values correctly if the sample function is created in recording module instead of calling from other .cs file
Regards
Adi
How to change the property of an object on Runtime
-
- Posts: 6
- Joined: Sat May 19, 2012 11:56 am
How to change the property of an object on Runtime
You do not have the required permissions to view the files attached to this post.
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: How to change the property of an object on Runtime
Hi,
How do you have bound the repo variables to the data connector via the UserCode variables or via another Recording?
Normally the repository variables are "connected" to the variables of a specific Recording/CodeModule (if you use the data driven approach for the repo variables) and if a new instance of the Recording/CodeModule is created (manually in code) the variables which were set via the data connector are re set to the default value (check the constructor of the Recordings which uses them).
Which Ranorex version are you using?
Regards,
Markus
Ranorex Support Team
How do you have bound the repo variables to the data connector via the UserCode variables or via another Recording?
Normally the repository variables are "connected" to the variables of a specific Recording/CodeModule (if you use the data driven approach for the repo variables) and if a new instance of the Recording/CodeModule is created (manually in code) the variables which were set via the data connector are re set to the default value (check the constructor of the Recordings which uses them).
Which Ranorex version are you using?
Regards,
Markus
Ranorex Support Team
-
- Posts: 6
- Joined: Sat May 19, 2012 11:56 am
Re: How to change the property of an object on Runtime
Hi Markus,
I have bound the repo variables to the data connector via another Recording.
I am using 3.3.2 version od Ranorex
Thanks
Adi
I have bound the repo variables to the data connector via another Recording.
I am using 3.3.2 version od Ranorex
Thanks
Adi
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: How to change the property of an object on Runtime
Hi,
I guess the problem is because the values of the repo variables are reset, but in order to analyze the issue in detail it would help us if you could send us your Ranorex solution, you can send it to our support mail address: [email protected].
Regards,
Markus
Ranorex Support Team
I guess the problem is because the values of the repo variables are reset, but in order to analyze the issue in detail it would help us if you could send us your Ranorex solution, you can send it to our support mail address: [email protected].
Regards,
Markus
Ranorex Support Team