Automated system for resistance and critical current measurements