Click here to Skip to main content
15,906,708 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,
I have to call one testmethod from another testmethod in automation testing.
Is it possible? If so Give me the solution.

Thanks,
Revathi
Posted
Comments
Sergey Alexandrovich Kryukov 29-Nov-11 1:36am    
What testing system/library do you use and what's your problem?
--SA
sathyatv 29-Nov-11 3:18am    
no
sathyatv 29-Nov-11 3:19am    
i need to call a test method from another test method

Check this question[^]. Second solution is pretty good.
 
Share this answer
 
C#
public void FirstMethod()
{
   //code here
}

public void SecondMethod()
{
   FirstMethod();
}
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900