Hi @JarvanZhang ,thank you for reply.
It works same with real phone. In addition uitests on real phones work too slow.
I set categories with this way:
public enum EGeneralTestOrder
{
DeleteAllTestFile = 1,
LoginTest,
MyFolderTest
}
public enum LoginTestOrder
{
Login_Success = 1,
Login_EmptyUsername_Unsuccess,
Login_EmptyPassword_Unsuccess
}
public abstract class BaseTest
{
protected const int RepeatCount = 1;
protected const string LoginTestPrefix = "LoginTest";
protected const string MyFolderTestPrefix = "MyFolderTest";
//...
}
[TestFixture, Order((int)(EGeneralTestOrder.LoginTest)), Category("LoginTests")]
public class LoginTest : BaseTest
{
public LoginTest() : base()
{
}
[Category(LoginTestPrefix)]
[TestCase(TestConfigurations.BaseURL, Username1, Password1), Order((int)(LoginTestOrder.Login_Success))]
[Retry(RepeatCount)]
public void Login_Success (string url, string username, string password)
{
try
{
//test codes...
}
catch (Exception ex)
{
Assert.Fail(ex.ToString());
}
}
[Category(LoginTestPrefix)]
[TestCase(TestConfigurations.BaseURL, "", Password1), Order((int)(LoginTestOrder.Login_EmptyUsername_Unsuccess))]
[Retry(RepeatCount)]
public void Login_EmptyUsername_Unsuccess (string url, string username, string password)
{
try
{
//test codes...
}
catch (Exception ex)
{
Assert.Fail(ex.ToString());
}
}
}
I have been running uitests for a long time (about 1 year) That's why I don't think issue is category.
But still I added how I set categories to see if I have any errors setting category.