# Autotest Won't Run

**URL:** <https://forum.choiceofgames.com/t/autotest-wont-run/6348>\
**Category:** ChoiceScript Help\
**Created:** [December 18, 2014, 8:55am UTC](https://forum.choiceofgames.com/t/autotest-wont-run/6348 "2014-12-18T08:55:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![LacetheDisgrace](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/lacethedisgrace/32/2571_2.png) [@LacetheDisgrace](https://forum.choiceofgames.com/u/LacetheDisgrace)\
**Post date:** [December 18, 2014, 8:55am UTC](https://forum.choiceofgames.com/t/autotest-wont-run/6348/1 "2014-12-18T08:55:18Z")

</div>

I would post an actual image of the issue I’m getting, but I’m not allowed to post images as a new user. I’ll attempt to explain the best I can.

I resolved the Java issues some people have when they try to use autotest, but a new issue has cropped up. I use cmd and cd over to the directory containing my game (I’m using [Copy.com](http://Copy.com), btw). I then try to run quicktest.bat or randomtest.bat. I get this error:

> js: “autotest.js”, line 52: uncaught JavaScript runtime exception: ReferenceError: “mygame” is not defined.  
> at autotest.js:52

I’ve found nothing on this on the wiki, on the main site or through googling.

I can’t get the html files to work either.

Anybody able to help?

---

<div class="post-metadata">

**Author:** ![Mystjerne](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/mystjerne/32/16217_2.png) [@Mystjerne](https://forum.choiceofgames.com/u/Mystjerne)\
**Post date:** [February 14, 2016, 2:58am UTC](https://forum.choiceofgames.com/t/autotest-wont-run/6348/2 "2016-02-14T02:58:37Z")

</div>

Alright, this topic is hella dead, and I know I shouldn’t bump this, but I think I should just mention how to solve this problem.

You’ve probably renamed the original file “mygame” to something else. Change the name of the file back to mygame and it should work.

It worked for me.

---

<div class="post-metadata">

**Author:** ![LacetheDisgrace](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/lacethedisgrace/32/2571_2.png) [@LacetheDisgrace](https://forum.choiceofgames.com/u/LacetheDisgrace)\
**Post date:** [March 1, 2016, 12:33am UTC](https://forum.choiceofgames.com/t/autotest-wont-run/6348/3 "2016-03-01T00:33:02Z")

</div>

Thank you. I have never understood why this error occurs, and so I appreciate you helping me. I haven’t seen an answer elsewhere, and so I hope the mods don’t mind us bumping this, as it could be useful to someone. I’ve had this occur several time to me.
