I'm facing a weird problem here. I need to separate the common steps in the testcases and create a method in a new class. But it doesnt work.
For example, I have recorded 6 screens and the way to reach all the six screens are common. Only the core part of the screen differs. In this case there is so much of duplicate code and I'm trying to remove that. I copied the common steps to a function in a new class and called that function from the testcase. It doesnt work at all. The common class inherits the same classes as done by the test cases. There is no compilation error or warning. But it just doesnt call them. It makes the function look insignificant.
Kindly help me get through with this issue. I'm not able to figure out if this is a problem with the tool or c# itself. Thanks in advance for the reply.
For example, I have recorded 6 screens and the way to reach all the six screens are common. Only the core part of the screen differs. In this case there is so much of duplicate code and I'm trying to remove that. I copied the common steps to a function in a new class and called that function from the testcase. It doesnt work at all. The common class inherits the same classes as done by the test cases. There is no compilation error or warning. But it just doesnt call them. It makes the function look insignificant.
Kindly help me get through with this issue. I'm not able to figure out if this is a problem with the tool or c# itself. Thanks in advance for the reply.