From: Vamsee <kri...@ya...> - 2006-03-22 14:03:48
|
Hi All, I encountered a Script Exception: NameError: default File "", line 1, in? when i tried to record the test. I found the similar posting in forum ( https://sourceforge.net/forum/forum.php?thread_id=1174056&forum_id=152821 ), but that is solving in case the Fixture is not generated. Here is the problem description: When i tried to record Java application the error ScriptException: NameError: default File "", line 1, in?" appears. When test is done it launched the application successfully. Iam also able to test & record the SampleAppDemo successfully. I also tried by including the line marathon.runtime.port=2222 at the end in .mpf file ,it gave same error when tried to record. Marathon version:marathon-0.90a Java version:jre1.5.0 Description: Method to launch application:"C:\Program Files\Application\Console\Jre\bin\javaw.exe" -cp ..\config;console.jar gui/MainClass Method of configuration in marathon In create and manage configuration window i gave some name (test) & selected directory as c:/Program files/Application folder. Description, resolvers & properties fields are empty. In Main tab for Mainclass i have given main class of application as gui/MainClass & rest all fields are empty. In classpath tab I have added all the jars & clicked at test it launched the application successfully then i saved it with same name as test in the same c:/Program files/Application path. Then selected the above saved .mpf file & clicked OK, marathon window opened.when i clicked Record button a popup showed ScriptException: NameError: default File "", line 1, in?" . The default fixture was generated as follows import gui/MainClass class Fixture: def start_application(self): args = [] gui/MainClass.main(args) def teardown(self): pass def setup(self): self.start_application() Please reply ASAP. This is really urgent. Thanks in advance --Vamsee --------------------------------- Yahoo! Mail Use Photomail to share photos without annoying attachments. |