Please find the common slot and Init function in my testcase class.
1. I created a common method "EnterAdminPassword" containing AddStep() calls in base class and tried to call this inside derived init method without overriding in derived class. but I got following error
Error Tests::TC1_SetupAdminPassword.Init (10:32) : Unknown identifier 'EnterAdminPassword' found.
2. Then I override the method by calling super(). But then also I got same error. If using super(sender);, getting error "Unknown identifier 'sender' found."
3. So I created a slot in derived class and called the overrided method EnterAdminPassword inside the slot. But that time, the AddStep is not worked. In AddStep calls I have given SendTouchEvent().
Can you please confirm BaseCommonMethod . here EnterKeya and EnterKeyd are slots inside base class.
Can you please help to follow the proper approach.
Your BaseCommonMethod looks fine. No need to overwrite this inside your derived calls. Are you calling this inside your derived class Tests::TC1_SetupAdminPassword.Init() like:
AddStep( "SomeOtherStep", onSomeOtherStep, 1000 );
AddStep( "SomeOtherStep2", onSomeOtherStep2, 1000 );
Ask Embedded Wizard
Welcome to the question and answer site for Embedded Wizard users and UI developers.
Ask your question and receive answers from the Embedded Wizard support team or from other members of the community!