When you say scan chain testing ... it has lot of meaning, so please be specific.
ing
I think u are asking about the stuck at 0 or stuck at 1 scan testing , there are 2 types of testing,
1. transition testing
2. stuck at 0 or stuck at 1 testing
stuck at 1 or 0 , you need to generate a pattern called test vectors , those vectors are generated by tool itself but you can configure which type of pattern you want , then those patterns will drive into test inputs and monitor at test output.
if you want to know more, you can search stuck at 0/1 and search for capture cycle which is a basic concept in scan testing.
hope this will help you understand scan chain testing .. this is vast topic and can't cover in forum, you need to download more material and understand it.
Let me know if you have any specific question -