+ Start a Discussion
@Siva.ax1713@Siva.ax1713 

How to Find the apex class method is calling from Test class Urgent

Hi All,

 

I wish to find the Apexmethod is calling from Test class.

Ex:

 

Class A has the method called cal();

 

B is the test class for A and B is calling cal() Method of A. 

So I wish to find the cal() is Calling from B(Test Class).

 

please help me ...

Best Answer chosen by Admin (Salesforce Developers) 
harsha__charsha__c

Find the uncovered line numbers from the test results and check from them

All Answers

harsha__charsha__c

Find the uncovered line numbers from the test results and check from them

This was selected as the best answer
gbu.varungbu.varun

Hi, 

 

In test method make a object of class A like 

 

A obj = new A ();

 

test.starttest();

obj.cal();

test.StopTest();

test.StopTest();

 

You can find uncovered line of code after running test case.