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

Command Line Runner fails in NeedToCompile() method

12 Answers 175 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Kanstantsin
Top achievements
Rank 1
Kanstantsin asked on 29 Apr 2011, 02:41 PM
WebUI  QA Edition 2010.3.1607

"C:\Program Files (x86)\Telerik\WebUI Test Studio 2010.3\Bin\ArtOfTest.Runner.exe" "aii=D:\My Path\Some script.aii"

Object reference not set to an instance of an object.
   at ArtOfTest.WebAii.Design.ProjectModel.Test.NeedToCompile()
   at ArtOfTest.WebAii.Design.Execution.CommandLineRunner.ExecuteTest(String aiiFullPath, Dictionary`2 publishArgs)
   at ArtOfTest.Runner.Program.CommandLineExecution(String[] args)
   at ArtOfTest.Runner.Program.Main(String[] args)


How to solve this error?

12 Answers, 1 is accepted

Sort by
0
Konstantin Petkov
Telerik team
answered on 29 Apr 2011, 03:18 PM
Hi Kanstantsin,

Thanks for writing.

I can admit such an error was possible with the build you're running. Please install the latest internal build to solve it. I'm sorry for the temporary inconvenience!

Kind regards,
Konstantin Petkov
the Telerik team
Do you think you know all the new features coming out in Test Studio R1 2011? Think again - we have some surprises and will share them with you in the What's New in Test Studio R1 2011 Webinar on May 12th.
Register Today!
0
Kanstantsin
Top achievements
Rank 1
answered on 29 Apr 2011, 03:21 PM
I'm already use 2010.3.1607.
0
Konstantin Petkov
Telerik team
answered on 29 Apr 2011, 07:33 PM
Hello Kanstantsin,

You are right -- the issue persists in the latest internal build too. The good news is our next official and major R1 is coming out on Monday next week. Please make sure you upgrade once we announce the new release.

All the best,
Konstantin Petkov
the Telerik team
Do you think you know all the new features coming out in Test Studio R1 2011? Think again - we have some surprises and will share them with you in the What's New in Test Studio R1 2011 Webinar on May 12th.
Register Today!
0
Vin
Top achievements
Rank 1
answered on 03 May 2011, 02:01 PM
Could you please let me the syntax to run the test using command line.
0
Cody
Telerik team
answered on 03 May 2011, 07:55 PM
Hi Vin,

Please check out this documentation.

Greetings,
Cody
the Telerik team
Do you think you know all the new features coming out in Test Studio R1 2011? Think again - we have some surprises and will share them with you in the What's New in Test Studio R1 2011 Webinar on May 12th.
Register Today!
0
Vin
Top achievements
Rank 1
answered on 04 May 2011, 05:58 AM

Hi,


Even am getting same error while running the test using command line arguments. Have downloaded “Telerik.WebUI.TestStudio.QA.2010.3.1607_Trial.msi” and tried. Please find the attached screen shot and please advice.  

0
Cody
Telerik team
answered on 04 May 2011, 04:40 PM
Hi Vin,

I am very sorry you are running into this problem. Please send me your entire test project for analysis and diagnostics (just place the entire folder into a .zip file), or at least one of the problem tests (the .aii and .resx and .cs/.vb files). You may open up a support ticket on this problem if you wish to have some security. Only you and us in tech support can view your support tickets.

Best wishes,
Cody
the Telerik team
Do you think you know all the new features coming out in Test Studio R1 2011? Think again - we have some surprises and will share them with you in the What's New in Test Studio R1 2011 Webinar on May 12th.
Register Today!
0
Kanstantsin
Top achievements
Rank 1
answered on 04 May 2011, 06:48 PM
Attached.
BTW, your Forum Post Editor does not works in Chrome (see second attachment).
0
Vin
Top achievements
Rank 1
answered on 05 May 2011, 05:27 AM
Team,

Please find the attachments, please advice.
0
Cody
Telerik team
answered on 11 May 2011, 04:15 PM
Hello Vin,

My apologies for the delay responding to you. I took your project, upgraded it to our R1 release (which was released to the public last week) and successfully ran your q.bat file (after tweaking the file paths). I am guessing that somehow your installation is messed up in some obscure way. Please try uninstalling Test Studio completely, downloading R1, installing it and reloading your project and try this again. The uninstall will not remove your existing test project. You can re-open it by selecting Open Existing Project from the main screen.

All the best,
Cody
the Telerik team
Do you think you know all the new features coming out in Test Studio R1 2011? Think again - we have some surprises and will share them with you in the What's New in Test Studio R1 2011 Webinar on May 12th.
Register Today!
0
Vin
Top achievements
Rank 1
answered on 12 May 2011, 01:41 PM
Cody,

Thanks so much, its working fine for me.
Could you please let me know, is it possible to run the test file in batch using command line arguments.
0
Cody
Telerik team
answered on 17 May 2011, 11:23 PM
Hello Vin,

I'm not sure I understand what you mean by "...run the test file in batch...". If you want to run a set of tests I recommend using our Test List feature which you can find some documentation on in the middle of this page.

To execute a test list from the command line, use the list= command line option as shown in the documentation I previously pointed you to on the ArtOfTest.Runner command line utility.

Greetings,
Cody
the Telerik team
Do you think you know all the new features coming out in Test Studio R1 2011? Think again - we have some surprises and will share them with you in the What's New in Test Studio R1 2011 Webinar on May 12th.
Register Today!
Tags
General Discussions
Asked by
Kanstantsin
Top achievements
Rank 1
Answers by
Konstantin Petkov
Telerik team
Kanstantsin
Top achievements
Rank 1
Vin
Top achievements
Rank 1
Cody
Telerik team
Share this question
or