Welsh Premier League champions The New Saints will face Slovan Bratislava in the second qualifying round for the Champions League.
The first leg of the tie takes place in Slovakia on either 15 or 16 July, with the return leg the following week.
In the Europa League first qualifying round, Aberystwyth Town will face Derry City.
Bangor City will play Stjarnan of Iceland and Airbus UK Broughton are drawn against Norway's FK Haugesund.
The first leg matches will be played on Thursday, 3 July with the return legs a week later.
Bangor City will face Motherwell in the second qualifying round if they overcome the Icelandic league leaders.
Airbus UK Broughton will face Bosnia-Hercegovina's FK Sarajevo if they overcome Haugesund while Shakhtyor Soligorsk of Belarus await the winners of the Aberystwyth v Derry City tie.
The New Saints missed out on a Champions League tie against Celtic, who were seeded in the same pre-separated group.
Craig Harrison's side secured an eighth Welsh Premier League title last season and also won the Welsh Cup with a 3-2 win over Aberystwyth.
Slovan Bratislava, European Cup Winners ' Cup winners in 1969, have never advanced beyond the Champions League third qualifying round but reached the group stages of the Europa League in 2011-12 season.