Login to search console navigate to robots.txt section -> enter the url which you want to test in robots.txt