Forum Discussion

chris-m_evans's avatar
12 years ago

Issues With Else Statement

Currently we are testing a .NET application with testcomplete 9.31

Testcomplete is used via C#.Net.

 

I am having issues with else statement.

 Pseudo code:

1) If toggle button field == 0 (Off)

2) then click On (1)

3) else

4) click Off (0)

 

Issue is when toggle button field == 1 (On), it fails because “toggle button filed does not equal 0”.

1 Reply


  • Hi Chris,


     


    Perhaps, the conversion (for example, via the Convert.ToInt32 method) will help.