Build-Error: Recording does not contain a definition for ...

Ask general questions here.
IceT
Posts: 4
Joined: Fri May 09, 2014 2:39 pm

Build-Error: Recording does not contain a definition for ...

Post by IceT » Mon Mar 02, 2015 10:26 am

Hey,

While I extended our RanorexProject with new testcases, I got 141 build-error. In each recording I got the following error-messsage "Recording XY does not contain a definiton for 'SpeedFactor' (CS0117)" and "Recording XY does not contain a definiton for 'Milliseconds' (CS0117)".

The recordings, that I added to the testcases are just standard things nothing extra ordinary. I did a little copy&paste from other testcases.

The fact that the SpeedFactor and Milliseconds variable are not found, seems that something basically is broken.

Does anyone know, how I can fix this error?!

Thanks in advice,
Simon

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: Build-Error: Recording does not contain a definition for ...

Post by Support Team » Tue Mar 03, 2015 6:20 pm

Hi Simon,

It seems that the problem here is that you named your variables (SpeedFactor and Milliseconds) like properties from the Ranorex Delay class.
Please rename these variables to for instance to "SpeedFactor_Var" and "Milliseconds_Var", this should fix the issue.
By the way, which Ranorex version do you use?

Regards,
Markus