This is a migrated thread and some comments may be shown as answers.

Coded steps failed to complie

5 Answers 182 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Saima
Top achievements
Rank 1
Saima asked on 19 Jan 2011, 12:30 PM
Hi,

I am using WebUI QA version. And whenever i select the customize step in code and then exceute the test, it failed to complile with error 'Coded steps failed to compile' and the error log displayed is

Type 'System.Windows.Forms.Keys' is not defined.

Please help to resolve the issue.

Thanks,
Saima

5 Answers, 1 is accepted

Sort by
0
Madhu
Top achievements
Rank 1
answered on 19 Jan 2011, 05:04 PM
I'm also facing same issue, please someone provide a solution?

For time being, to execute your test go to Record Tab then Remove Script File (as shown attachment).
0
Konstantin Petkov
Telerik team
answered on 19 Jan 2011, 05:53 PM
Hello Saima,

I'm afraid I can't reproduce such a problem running the latest version. It may depend on the exact step that is failing to compile and the exact code though. Can you post or send via .zip the error log please? Thanks a lot!

Regards,
Konstantin Petkov
the Telerik team
Interested in Agile Testing? Check out Telerik TV for a recording of Automated Testing in the Agile Environment
0
Madhu
Top achievements
Rank 1
answered on 19 Jan 2011, 06:36 PM

Hi Konstantin Petkov,

Thanks for prompt reply, I recreated this issue, please find attached video file and log file as well.

Your valuable response is appreciated.

Thanks,

Madhu.

0
Saima
Top achievements
Rank 1
answered on 21 Jan 2011, 10:42 AM
Hi,

Haven't recieved any update on it? Can anyone please help to resolve the issue? Many thanks.

Saima
0
Cody
Telerik team
answered on 23 Jan 2011, 03:58 AM
Hi Saima,

All of the errors saying "Namespace or type ... cannot be found" along with "Type 'Telerik.WebAii.Controls...' is not defined." imply that your project is missing a couple of required dll references as shown in the attached screen shot. To add these missing references:
  1. Open your test project
  2. Click Show Settings in the ribbon bar at the top
  3. Click Script Options on the left
  4. Click Add Reference
  5. Navigate to C:\Program Files\Telerik\WebUI Test Studio 2010.3\Bin\Translators
  6. Select Telerik.WebAii.Design.Translators.Html.dll
  7. Click Open
  8. Repeat steps 1-6 but select Telerik.WebAii.Design.Translators.Xaml.dll this time

That should solve most of the compile errors. I am still concerned about the errors reported on lines 70 - 74 in Test.aii.vb. If the above doesn't complete resolve all of the errors, please send me that one file or the entire test project in a .zip file. Once I receive it I'll figure out what's wrong with it.

Greetings,
Cody
the Telerik team
Interested in Agile Testing? Check out Telerik TV for a recording of Automated Testing in the Agile Environment
Tags
General Discussions
Asked by
Saima
Top achievements
Rank 1
Answers by
Madhu
Top achievements
Rank 1
Konstantin Petkov
Telerik team
Saima
Top achievements
Rank 1
Cody
Telerik team
Share this question
or