how to Know the longest ORF in Protein?
Proteins don't have ORFs, DNA sequences do.  What DNA sequences do you have?  If cDNA (i.e. transcript/mRNA) then an ORF finder will give multiple ORFs and the coordinates on the full-length input DNA which indicate it's length.