c# execute red exit

gongyouze

Пользователь
Регистрация
26.06.2014
Сообщения
42
Благодарностей
0
Баллы
6
If I want Step c# return to error, what should I do
1.jpg
my code is:

if (System.Int32.Parse(project.Variables["a"].Value)<2)
{
Tab tab = instance.ActiveTab;
stringpageurl=tab.URL;
tab.Navigate(pageurl, "");
if (tab.IsBusy) tab.WaitDownloading();
int a = System.Int32.Parse(project.Variables["a"].Value)+1;
return a ;
}
else
{
return t;
}

When if {} else c# starts to execute the Step error, execute
2.jpg

What value should I return to realize this purpose.
 

gongyouze

Пользователь
Регистрация
26.06.2014
Сообщения
42
Благодарностей
0
Баллы
6
We are always two steps to complete such a thing if the condition returns a value from the C # module and then use an if statement to determine whether to perform red exit, I hope to complete a step
 

gongyouze

Пользователь
Регистрация
26.06.2014
Сообщения
42
Благодарностей
0
Баллы
6

shade

Client
Регистрация
19.11.2010
Сообщения
580
Благодарностей
346
Баллы
63
here
 

Вложения

gongyouze

Пользователь
Регистрация
26.06.2014
Сообщения
42
Благодарностей
0
Баллы
6
thanks very much
 

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)