Forum Discussion

Viji123's avatar
Viji123
Occasional Contributor
9 years ago

Is List ( Python) supported in Testcomplete

Am using testcomplete for desktop automation. Using Python for scripting. I am trying to create a list and add elements to it.

But it is not working. 

 

For ex if i create an empty list as below , there is no auto complete suggestion

list = []

list.  ----> No autocomplete suggestion

 

So i tried like below

list.append ["hello"]

 

Its throwing error. Can anyone let me know if list is supported in testcomplete

 

 

1 Reply

  • baxatob's avatar
    baxatob
    Community Hero

    Hi,

     

    Of course, list type is supported in TestComplete.

     

    Valid usage of append method:

     

    lst = []
    lst.append("hello")