I am using utility class methods which are called in test class to populate all fields of say XYZ object.But i have a field in XYZ object which is formula field. As it is read only i would not want to populate it since it gives me an exception for populating read only field. I tried using below method for DescribeFieldResult object,
public Schema.DisplayType getType()
Though above works if there is no formula field but doesnt work in my case as it depends on the return type(Formula field may have any type Text/Date/Currency). I am a newbie. Hope i will get a better guidance on this. Thanks in advance.