You need to use data conversions or you need to change the data type of the variable you are comparing with.
Example, if they are all integers, you could pass the data type to long integer. And then you can use a data conversion, like this:
If (TestCurrentClaimRecord.TestClaimId =LongIntegerToIdentifier(TestClaimtext),TestPdf, If(TestCurrentClaimRecord.TestClaimId=LongIntegerToIdentifier(TestClaimText_2),TestPdf_2,TestPdf_3))

Or you can still use text and do this
If (TestCurrentClaimRecord.TestClaimId =LongIntegerToIdentifier( TextToLongInteger(TestClaimtext)),TestPdf, If(TestCurrentClaimRecord.TestClaimId=LongIntegerToIdentifier( TextToLongInteger(TestClaimText_2)),TestPdf_2,TestPdf_3))