I don't know latex commands to create the cayley table (if possible, please let me know), so consider the set $S= \{a,b,c\}$ with the binary operation $*$ defined as follows:
$a*a=a, a*b= b= b*a, a*c= c= c*a$
$b*b= a, b*c= c, c*b= b, c*c= a$
Mentally I calculated, if associativity holds, I started with the non-commutative results to get $b*c= c$ and $c*b= b$ like, $b*(b*c)= b*c= c= a*c= (b*b)*c$.
But is there any general method, rather than showing that it holds or not, verifying each and every possible combinations to show the associativity holds or doesn't holds for the whole set.
Alternatively, is there any trick to easily locate one such combination for which the associativity doesn't holds so that I can conclude Associative property doesn't works so its not even a semi-group.