Forum Discussion

RaresB's avatar
RaresB
Occasional Contributor
9 years ago

Problem with indentation in Python using Test Complete 11.20

Hy,

 

Recently I've started to migrate my projects from Jscript to Python and I encountered a lot of problems with indentation in Test Complete 11.20.

Either I hit Tab or Enter the code looks like is indented but I get the Error while processing indentation.

 

If I copy the code block in another editor like Notepad I can see that the line is not indented corectly so I can corect it.

After I copy back the code block in Test Complete the code looks the same as was before but the error is gone.

 

Is this a known issue or it can be fixed with some settings from Test Complete?

 

 

Another concern I have using Python is that a large amount of time is added to runtime execution if I have to import more libraries of Python (like random, datetime, etc).

Are there extra validations from Python to Test Complete that are done when the code is compiled and can we disable them?

 

Thanks