简体   繁体   中英

how to get the test case name in selenium web driver in ruby?

I am newbie to Selenium and I have this doubt. Say I have a code like this

it "test_name" do 
   #test code enter code here 
end

Is there any way I can get the "test_name" or is it possible to store that in a string and use it over there before it. Thanks ind advance

While running your tests, pass a command line argument -v . The V stands for verbose .

So for example

ruby test.rb -v

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM