Hi Maria Isabel,
You will probably want to place that code within a OnAfterTestCompleted() or OnBeforeTestStarted() method, outside of the actual coded step method. See here for a tutorial.
What compilation error do you get? I suspect you need to add a reference to the Oracle dll to your Test Studio project.
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Telerik Public Issue Tracking
system and vote to affect the priority of the items