# How to run Re-run failed testcases if the testcase has been divided into more than one file?

**URL:** <https://forum.katalon.com/t/how-to-run-re-run-failed-testcases-if-the-testcase-has-been-divided-into-more-than-one-file/63201>\
**Category:** API Testing\
**Tags:** start-page, api-testing, katalon-studio\
**Created:** [March 8, 2022, 8:19pm UTC](https://forum.katalon.com/t/how-to-run-re-run-failed-testcases-if-the-testcase-has-been-divided-into-more-than-one-file/63201 "2022-03-08T20:19:19Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![kazurayam](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kazurayam/32/333_2.png) [@kazurayam](https://forum.katalon.com/u/kazurayam)\
**Post date:** [March 10, 2022, 12:20am UTC](https://forum.katalon.com/t/how-to-run-re-run-failed-testcases-if-the-testcase-has-been-divided-into-more-than-one-file/63201/9 "2022-03-10T00:20:01Z")

</div>

> [@mqamar](#):
>
> Because test case files can’t be more than 800 or 900 lines (I can’t remember the exact number), I’ve divided my test cases to more than 1 file.

I am afraid, your idea will NOT solve your original problem.

I suspect that your original problem was the one discussed at the following topic. Am I right?

- [Method code too large](http://forum.katalon.com/t/method-code-too-large/9475/18)

You thought that you can workaround the “Method code too large” problem by splitting a single large Test Cases into smaller pieces and re-assembling them by `callTestCase()`.

But in fact, no, you can’t. The “Method code too large” error occurs **when the `run()` method of the Main class** derived from `4_RunAll` will become larger than the JVM limitation (64K bytes) in size of the compiled JVM byte code. AFAIK, the `run()` becomes as large as the sum of component sources (`1_CreateUser` + `2_UpdateUser` + `3_DeleteUser`).

Q. How can you definitely workaround the “Method code too large” problem?

A1. You can make a Test Suite which combines the 3 Test Cases. If it is favourable for you and you can avoid using `callTestCases()`, it is the easiest.

A2. Or You want to rewrite the source codes of `1_CreateUser`, `2_UpdateUser`, `3_DeleteUser` to be more compact. How to? — I don’t see, as it depends how your codes are written.

---

_[View the full topic](https://forum.katalon.com/t/how-to-run-re-run-failed-testcases-if-the-testcase-has-been-divided-into-more-than-one-file/63201)._
