International Cricket Council (ICC) awarded them with the Test status a year ago along with Ireland.
Afghanistan will play their maiden Test match in the southern Indian city of Bangalore from 14 to 18 June, cricket officials announced Tuesday.
Phil Simmons, who was appointed Afghanistan's coach late a year ago, could hardly have wished for a more fitting opening fixture in the longest form of the game.
As India play Afghanistan in June, Pakistan will play Ireland in May.
BCCI acting secretary Amitabh Choudhary said that several factors had been taken into consideration before deciding the venue for the historic match.
The match will mark the first anniversary since Afghanistan and Ireland were given Full Member status by the International Cricket Council (ICC).
"BCCI has always extended support to Afghanistan cricket, infrastructural support and every other kind of support".
Named the Indo-Afghanistan Friendship Series, the one-off Test will be held within three weeks of this year's Indian Premier League (IPL) final and ahead of India's tour of England. The Test match will be a rare home fixture for India who are playing the majority of long-form cricket in 2018 away from home. "The Afghanistan cricketers and fans are impatiently waiting for the Test match", he said.