Shanghai will lock down each half of the mega city in turns to conduct a mass testing blitz as authorities scramble to staunch a spiralling virus outbreak in the financial hub and beyond.