Ruby??????Rspec???
???????????? ???????[ 2013/12/16 11:12:05 ] ????????
describe '??????' do
# ?????before hook?????????'??????'describe?????
before(:each) do
echo '--- ??????????? ---'
end
describe '????????' do
it '????????' do
echo '????????'
end
it '???????·' do
echo '???????·'
end
end
describe '????????' do
it '??????????????????' do
echo '??????????????????'
end
it '?紵????????????????' do
# ????δ???????? ???????????д???? ????????????????pending??????λ
pending '????????????'
end
end
end
end
|
?????????????н???????????????????????????????
????????????????????????????
??????д????????????????????????????????????????????
??????Rspec??????????? DSL ??Domain Specific Language????????????????????????????н???????д????????????????Rspec??????????????????????????????????????????????????滯???????????????????????????describe??it?????????????????????
???????δ???????????λ
?????????????????
????????δ?????????????????????д??????????????????????????pending??????λ
????it '?紵????????????????' do
????# ????δ???????? ???????????д???? ????????????????pending??????λ
????pending '????????????'
????end
??????????????????У??????????????????? ??????????????/????????????/???δ???????????λ??????????????????Rspec??д????????????·?????????????????????????д markdown ???????????????????????? pending ?λ
????д?????????????????????html????????????????????????????????????????????????????????У???
?????????????????
????Rspec?????DSL???????????????????в??????Ruby???????????
????Rspec??TestNG/JUnit????????????before/after??hook??????????????????÷?Χ??????describe
????????describe??????????????Rspec?е?before/after?????????????????????TestNG??Before/After???????????
????describe 'PHILIPS??? - ???????' do
# Rspec????????DSL ?????п?????????Ruby???? ???????echo()????
def echo(input)
puts input
end
# Rspec??TestNG/JUnit??? ???????before/after??hook
# ?????÷?Χ????????describe
# before??it?????????
before(:each) do
echo '--- ??????β??? ---'
end
# after??it??????????
after(:each) do
echo "--- ???????β??? ---
"
end
|
???????????????????????漰???????????????????SPASVOС??(021-61079698-8054)?????????????????????????
??????

???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11????????
?????????App Bug???????????????????????Jmeter?????????QC??????APP????????????????app?????е????????jenkins+testng+ant+webdriver??????????????JMeter????HTTP???????Selenium 2.0 WebDriver ??????