Pupils will sit the new online tests in P4 and P7 of primary school and year 10 of post-primary school.