Mick Schumacher, son of seven-time champion Michael, will make his Formula 1 test debut for Ferrari on 2 April.
The 20-year-old German, who signed up to the Ferrari driver academy over the winter, will drive for them and the affiliated Alfa Romeo team in Bahrain.
Briton Callum Ilott, another member of the Ferrari academy, will also test for Alfa Romeo in Spain on 14-15 May.
"Mick and Callum are drivers on the way up," Ferrari team boss Mattia Binotto said.
"I believe that driving in an official setting such as the tests in Bahrain and Barcelona can be very useful at this stage of their careers."
Their opportunity comes at official F1 tests attended by all the teams - the first is after this weekend's Bahrain Grand Prix, the second after the Spanish Grand Prix.
Schumacher, who makes his debut in the Formula 2 feeder series over the weekend in Bahrain, said: "I am obviously more than excited and would like to thank Ferrari for giving me this opportunity.
"I am really looking forward to what I'm sure will be a great experience.
"But for the moment, I am consciously putting all thoughts of the test to one side, because I am also very much looking forward to competing in my first F2 race and would like to focus 100% on the weekend to come."
Michael Schumacher won five of his record-breaking tally of world titles for Ferrari, and the vast majority of his all-time record 91 Grand Prix victories.
The 50-year-old, who retired from F1 for a second time at the end of 2012, has not been seen in public since suffering severe brain injuries in a skiing accident in December 2013.
His family has declined to reveal details of his condition, saying they believe he would prefer it to remain confidential.