Äú¿ÉÒÔ¾èÖú£¬Ö§³ÖÎÒÃǵĹ«ÒæÊÂÒµ¡£

1Ôª 10Ôª 50Ôª





ÈÏÖ¤Â룺  ÑéÖ¤Âë,¿´²»Çå³þ?Çëµã»÷Ë¢ÐÂÑéÖ¤Âë ±ØÌî



  ÇóÖª ÎÄÕ ÎÄ¿â Lib ÊÓÆµ iPerson ¿Î³Ì ÈÏÖ¤ ×Éѯ ¹¤¾ß ½²×ù Model Center   Code  
»áÔ±   
   
 
     
   
 ¶©ÔÄ
  ¾èÖú
Robot FrameworkÍêÕûÁ÷³ÌѧϰϵÁÐ
 
  3939  次浏览      27
 2018-6-27
 

 

±à¼­ÍƼö:

±¾ÎÄÀ´×ÔÓÚ²©¿Í£¬½éÉÜÁË»·¾³´î½¨£¬RIDEµÄ½çÃæÈÏʶ£¬¹¤×÷ÇøEDIT £¬¹¤×÷ÇøRUN£¬°¸ÀýÉè¼ÆÖ®Á÷³ÌÓëÊý¾Ý·ÖÀëµÈ¡£

Ò».»·¾³´î½¨

ÍøÉÏÓкܶàµÄ½Ì³Ì£¬ÕâÀï¾Í²»¶à½²ÁË

¶þ.RIDEµÄ½çÃæÈÏʶ

ÕâÀïÖ»½éÉܼ¸¸öÖØÒª³£ÓõŦÄÜ£¬ÆäËûÏàÐÅ×Ô¼º¶¼ÄÜÀí½â

1.Search Keywords£¨F5): ËÑË÷¹Ø¼ü×Ö

2.Content Assistance£ºÄÚÈÝÖúÊÖ

3.View RIDE Log£º²é¿´RIDEÈÕÖ¾£¬Ê¹Óùý³ÌÖб¨´í£¬¿ÉÒÔÀ´ÕâÀï²é¿´£¬Ñ°ÕÒ±¨´íÔ­Òò

Èý.×î»ù±¾µÄÁ÷³Ì

1.New Project

TypeÑ¡ÔñDirectory£¬FormatÑ¡ÔñTXT

2.New Suite

ÔÚProjectµÄ»ù´¡ÉÏCreate New Suite,TypeÑ¡ÔñFile£¬FormatÑ¡ÔñTXT

3.New TestCase

ÔÚSuiteµÄ»ù´¡ÉÏCreate New TestCase

4.New Resource

ÔÚProjectµÄ»ù´¡ÉÏCreate New Resource

5.New User Keyword

ÔÚResourceµÄ»ù´¡ÉÏCreate User Keyword

ÕâʱºòÄãµÄRIDEÈçÏÂͼÏÔʾ¾Í¶ÔÁË

ËÄ.¹¤×÷ÇøEDIT

1.²âÊÔÌ×¼þ

´óÌå·Ö³É3¸ö²¿·Ö¡£

£¨1£©£º¼ÓÔØÍⲿÎļþ

Add Library £º¼ÓÔØ²âÊԿ⣬Ö÷ÒªÊÇ[PYTHONĿ¼]\Lib\site-packagesÀïµÄ²âÊÔ¿â

Add Resource£º¼ÓÔØ×ÊÔ´£¬Ö÷ÒªÊÇÄ㹤³ÌÏà¹ØµÄ×ÊÔ´Îļþ

Add Variables£º¼ÓÔØ±äÁ¿Îļþ£¬²»ÔõôÓ㬿ÉÔÝʱºöÂÔ

£¨2£©£º¶¨ÒåÄÚ²¿±äÁ¿

Add Scalar£º¶¨Òå±äÁ¿

Add List£º¶¨ÒåÁбíÐͱäÁ¿

£¨3£©£ºÔªÊý¾Ý¶¨Òå

Add Metadata£º¶¨ÒåÔªÊý¾Ý¡£ÎÒÊÇÖ±½Ó·­ÒëµÄ£¬Õâ¸öÊÇÐÂÔö¼ÓµÄ²¿·Ö£¬´ó¸Å¿´ÁËÒ»ÏÂ×÷ÓÃÊÇÔÚreportºÍlogÀïÏÔʾ¶¨ÒåºÃµÄÄÚÈÝ£¬¸ñʽºÍdocumentÒ»Ñù¡£

2.Ìí¼ÓResource£¨ÔÚSuiteÖУ©

3.Ìí¼ÓLibrary£¨ÔÚSuiteÖУ©

4.Ìí¼Ó³É¹¦µÄ±êÖ¾£¬ÔÚSourceÖгöÏÖSelenium2LibraryºÍres1

5.setting£¨°üÀ¨Project,Suit,Case£¬Resource£¬User KeywordsͼƬ¾Í²»Ò»Ò»ÉÏ´«ÁË£©

Documentation£ºÎĵµ£¬Ã¿Ò»Ïî¶¼ÓС£¿ÉÒÔ¸øµ±Ç°µÄ¶ÔÏó¼ÓÈëÎĵµËµÃ÷¡£

Suite SetupÖ¸µÄÊDzâÊÔÌ×¼þÆô¶¯µÄʱºò¾ÍÖ´ÐÐij¸ö¹Ø¼ü×Ö¡£(Àý£ºÎÒÔÚSuite SetupÉèÖÃÁËSleep | 5sec£¬±íʾµÈ´ý5Ã룬ҪעÒâ¹Ø¼ü×ֵIJÎÊýҪʹÓà | ·Ö¸ô)

Test TeardownÖ¸µÄ¾ÍÊǰ¸Àý½áÊøµÄʱºòÖ´ÐÐij¸ö¹Ø¼ü×Ö¡£

Test Template£º²âÊÔÄ£°æ£¬ÕâÊÇ¿ÉÒÔÖ¸¶¨Ä³¸ö¹Ø¼ü×ÖΪÕâ¸ö²âÊÔÌ×¼þÏÂËùÓÐTestCaseµÄÄ£°æ£¬ÕâÑùËùÓеÄTestCase¾ÍÖ»ÐèÒªÉèÖÃÕâ¸ö¹Ø¼ü×ֵĴ«Èë²ÎÊý¼´¿É¡£

Test Timeout£ºÉèÖÃÿһ¸ö²âÊÔ°¸ÀýµÄ³¬Ê±Ê±¼ä£¬Ö»Òª³¬¹ýÕâ¸öʱ¼ä¾Í»áʧ°Ü£¬²¢Í£Ö¹°¸ÀýÔËÐС£ÕâÊÇ·ÀֹijЩÇé¿öµ¼Ö°¸ÀýÒ»Ö±¿¨×¡²»¶¯£¬Ò²²»Í£Ö¹Ò²²»Ê§°Ü¡£

Force Tags£ºÕâÀﻹÊÇҪ˵һÏ£¬ÔÚÎļþÐÍSuiteÕâÀﻹ¿ÉÒÔ¼ÌÐø¸ø×ÓÔªËØÔö¼ÓForce Tags£¬µ«ÊÇËû²»ÄÜɾ³ý¸¸ÔªËØÉèÖõÄtags

Default Tags£ºÄ¬Èϱê¼Ç£¬ÆäʵºÍForce TagsÃ»É¶Çø±ðµÄ

Arguments£º´«Èë²ÎÊý

Return Value£º·µ»ØÖµ

Îå.¹¤×÷ÇøRUN

Execution Profile£ºÑ¡ÔñÔËÐз½Ê½£¬ÀïÃæÓÐpybot¡¢jybotºÍcustom script¡£ÆäÖÐÎÒÃÇĬÈÏÊÇÓÃpybotÀ´ÔËÐа¸Àý£¬jybotÐèÒª°²×°JythonµÄÖ§³Ö¡£custom scriptÊÇÑ¡Ôñ×Ô¶¨ÒåµÄ½Å±¾À´ÔËÐС£¾ÍĿǰ¶øÑÔ£¬ÎÒÃDz»ÓÃÐÞ¸ÄÁË£¬Ä¬ÈÏpybot¼´¿É

StartºÍStop:ÕâÁ½¸öÓ¦¸Ã²»ÓÃ˵ÁË£¬ÔËÐкÍÍ£Ö¹°¸Àý¡£

ReportºÍLog: ±¨¸æºÍÈÕÖ¾£¬ÒªÔËÐÐÖ®ºó²ÅÄܵã»÷¡£ËûÃǵÄÇø±ðô£¬ÎҵĸоõÊDZ¨¸æ¸ü¶àÊǽá¹ûÉϵÄչʾ£¬ÈÕÖ¾¸ü¶àÊǹý³ÌµÄ¼Ç¼£¬¸ü¶àʹÓõϹÊÇÈÕÖ¾¡£

Autosave: ×Ô¶¯±£´æ£¬Èç¹û²»¹´Ñ¡£¬ÔÚÐÞ¸ÄÁ˰¸ÀýÖ®ºóÈç¹ûûÓб£´æµÄ»°£¬ÔËÐа¸Àýʱ»áÌáʾÊÇ·ñ±£´æ¡£¹´Ñ¡ÔòÔÚÔËÐÐʱ×Ô¶¯±£´æÁË¡£

Arguments: pybotµÄ²ÎÊý£¨»òÕßjybotµÈ£©£¬±ÈÈçÎÒºóÃæ½ØÍ¼Àï¼ÓÉÏÁËÒ»¸ö²ÎÊý¡£ÍêÕû°æµÄ²ÎÊý¿ÉÒÔÔÚdocÃüÁîÐÐÊäÈëpybot.bat --help

Only Run Tests with these Tags: Ö»ÔËÐÐÕâЩ±ê¼ÇµÄ²âÊÔ°¸Àý¡£

Skip Tests with these Tags: Ìø¹ýÕâЩ±ê¼ÇµÄ²âÊÔ°¸Àý¡£

Áù.°¸ÀýÉè¼ÆÖ®Á÷³ÌÓëÊý¾Ý·ÖÀë1

1.´´½¨°¸Àý

ÕâËãÊÇÒ»¸ö±È½ÏÍêÕûµÄ°¸ÀýÁË£¬°üº¬ÍêÕûµÄÁ÷³ÌºÍ¼ì²éµã£¬ÄÇôÕâʱºòÈç¹ûÎÒÒªÔö¼ÓÒ»¸ö°¸Àý£¬ËÑË÷ÁíÍâµÄÄÚÈÝÔõô°ìÄØ£¿

ÔÚÔ­À´µÄcaseÉÏÐ޸Ŀ϶¨ÊDz»ºÏÊʵģ¬±Ï¾¹ÄǸö°¸Àý¿ÉÄÜ»¹ÊÇÐèÒª±£ÁôµÄ¡£

×î¼òµ¥µÄ°ì·¨£¬°ÑÕâ¸öcase¸´ÖÆÒ»¸ö£¬ÐÞ¸ÄËÑË÷ÄÚÈÝ¡£ÄÇôÎÒÃǸ´ÖƳöÒ»¸öcase2°É

2.·Ö²ã·½·¨

Ñ¡ÖÐcaseÖеÄËùÓнű¾£¬µã»÷ÓÒ¼ü£¬Ñ¡ÔñExtract Keyword

¶øÎÒÃÇÔÙ¿´caseµÄÄÚÈݾÍÖ»ÓÐÕâ¸ö¹Ø¼ü×ÖÁË

н¨Ò»¸öResourceÎļþ£¬°ÑUserKeywordÒÆ¶¯¹ýÈ¥£¨»òÕßÒÆ¶¯µ½ÒÑÓеÄResourceÎļþÀ

ÕâÑù×öµÄÄ¿µÄÊÇΪÁ˸üÇåÎú£¬ÔÚ²âÊÔÌ×¼þÖÐÒ»°ã²»·ÅÖÃUserKeyword£¬Ç°ÃæµÚ2½²µÄʱºòÎÒÃǾÍ˵¹ýÁË£¬Ê×Òª½¨ÒéUserKeyword·ÅÔÚResourceÀï¡£

ÎÒÕâÀïн¨Ò»¸öResource£¬½ÐTestFlow.txt£¬È»ºó°ÑÕâ¸öËÑË÷²âÊÔÒÆ¶¯¹ýÈ¥£¬¾Í³ÉÁËÕâÑù¡£

½ÓÏÂÀ´ÎÒÃÇÕë¶ÔÕâ¸ö²âÊÔÁ÷³Ì½øÐзÖÀ룬ÒòΪÕâ¸ö°¸ÀýÁ÷³Ì±È½Ï¼òµ¥£¬Êµ¼ÊÉϾÍÖ»ÓÐËÑË÷ÄÚÈÝÕâÒ»¸öÖµÊDZ仯µÄ£¬Òò´ËÎÒÃǰÑËû¸Ä³ÉÒ»¸ö±äÁ¿£¬Í¬Ê±°ÑÕâ¸öUserKeywordµÄ²ÎÊý¼ÓÉÏÕâ¸ö±äÁ¿¡£

ÔÙ»ØÍ·¿´¿´caseµÄÄÚÈݺÍÌí¼ÓÄÚÈÝ

¿ÉÒÔÔËÐÐÊÔÊÔ¿´

µ½ÏÖÔÚÎÒÃÇÍê³ÉÁËÒ»¸ö¼òµ¥µÄ·Ö²ã£¬°ÑËÑË÷²âÊÔÕâ¸öÁ÷³Ì°þÀë³ÉÒ»¸ö¹Ø¼ü×Ö£¬È»ºóÔÚ²»Í¬µÄcaseµ÷ÓÃÕâ¸ö¹Ø¼ü×Ö£¬È»ºó´«µÝ²»Í¬µÄ²ÎÊý£¬ÓÃÒÔ½øÐв»Í¬Êý¾ÝÔÚͬһ¸öÁ÷³ÌϵIJâÊÔ¡£

ÕâÑù¾Í²»Óõ£ÐÄÔÙÐÂÔö10¸ö»ò100¸ö°¸ÀýÁË£¬ÒòΪÕâ¸ö°¸Àý±È½Ï¼òµ¥£¬Í¨¹ý¸´ÖÆÒ²¿ÉÒÔ×ö³ö10¸ö»ò100¸ö°¸Àý£¬µ«ÊÇ×î´óµÄÇø±ðÔÚÓÚ£¬Èç¹ûÎÒµÄÁ÷³ÌÖмäÐèÒª×öÒ»µãСµÄµ÷ÕûºÍÓÅ»¯£¬¶ÔÓÚÁ÷³ÌºÍÊý¾Ý·ÖÀëµÄ°¸ÀýÀ´Ëµ£¬ÎÒÕâÑùά»¤Ò»ÏÂËÑË÷²âÊÔÕâ¸öUserKeyword¾ÍÐÐÁË£»¶ÔÓÚ¸´ÖƵݸÀý£¬ÄÇÄã¾ÍÒªÐÁ¿àÁË£¬ÄãÓжàÉÙ¸ö°¸Àý¾Í¸Ä¶àÉÙ°É¡£

ÆäʵÕâ¸öµÀÀíÒýÉê³öÀ´£¬ÎÒÃÇ×ö×Ô¶¯»¯²âÊÔÒ²ÊÇÒ»Ñù£¬Ñ¡Ôñ²»Í¬µÄ·½·¨»òÕß¹¤¾ß¶¼¿ÉÒÔʵÏÖ×îÖÕµÄÄ¿±ê£¬µ«ÊÇÎÒÃÇÐèÒª¿¼ÂǵIJ»ÊǰѰ¸Àý×öÆðÀ´£¬ÒòΪÕâ¸ö±È½ÏÈÝÒ×ʵÏÖ¡£¶ÔÓÚ×Ô¶¯»¯°¸ÀýÀ´Ëµ£¬×î´óµÄÄѶȲ»ÊÇÔÚÓÚÔõô×ö°¸Àý£¬¶øÊÇÔõôά»¤°¸Àý¡£ÒòÎªËæ×ÅÐèÇóµÄ¸üУ¬ÏµÍ³µÄÁ÷³Ì»òÕßÒ³Ãæ»á·¢ÉúºÜ¶àµÄ±ä»¯£¬ÕâʱºòµÄά»¤³É±¾µÄ¸ßµÍ²ÅÊÇÎÒÃÇÊ×Òª¿¼Âǵģ¬Èç¹û×Ô¶¯»¯°¸Àý½¨Á¢ÆðÀ´Ö®ºó£¬Ã»ÓкóÐøÎ¬»¤µÄͶÈ룬×îÖÕ¾­¹ýÈô¸É¸ö°æ±¾£¬ÕâЩ×Ô¶¯»¯°¸Àý»ù±¾¾ÍÊÇ·ÏÆúµÄÁË¡£

Æß.°¸ÀýÉè¼ÆÖ®Á÷³ÌÓëÊý¾Ý·ÖÀë1

½«ËÑË÷²âÊÔÖеÄÄÚÈݼÌÐø·Ö²ã£¬»¹ÊÇÒª°ÑһЩµ×²ãµÄ´úÂë¼¶¹Ø¼ü×Ö¼ÌÐø²ð·Ö³öÀ´

ÏÂÃæ¶Ôres1.txt½øÐвÙ×÷

1.´ò¿ªä¯ÀÀÆ÷

2.ÊäÈëËÑË÷ÄÚÈÝ

3.µã»÷ËÑË÷

4.УÑé±êÌâ

5.¹Ø±Õä¯ÀÀÆ÷

½Ó×ÅÎÒÃǰѶÔÓ¦µÄËÑË÷²âÊÔÖеĴúÂë¶¼»»³ÉÏàÓ¦µÄ¹Ø¼ü×Ö£¬¼ÇµÃÌí¼Ó²ÎÊý${url}

×îºó¸ÃÔËÐÐÁË

ÖÁ´Ë£¬ÎÒÃÇÕâ¸ö°¸Àý¾ÍÒѾ­Íê³É·Ö²ãÁË£¬ÒòΪ°¸Àý±È½Ï¼òµ¥£¬ËùÒÔÖ»·ÖÁË3²ã£¬·Ö±ðÊǰ¸Àý²ã£¬Á÷³Ì²ã£¬ÔªËز㡣ËûÃǵĵ÷ÓùØÏµÒ²ÊÇÖð²ãÉîÈëµÄ

×ܽáÒ»ÏÂ

ÕâÑù×öµÄºÃ´¦²»µ¥ÊÇΪÁËÒÔºóά»¤·½±ã£¬Ò²Ê¹µÃ°¸ÀýµÄ¼Ü¹¹²ã¼¶ÇåÎú¡£Ô½ÊÇ¿¿½üÉϲãµÄ²¿·Ö£¬½Å±¾Ô½Ìù½ü×ÔÈ»ÓïÑÔ£¬»òÕß˵ºÜÏñÎÒÃǵIJâÊÔ°¸Àý£»Ô½¿¿½üϲãµÄ²¿·Ö£¬Ô½ÊǽӽüÒ³ÃæÔªËØµÄ´úÂë¼¶²¿·Ö¡£ÕâÑùÒÔºóÈç¹û·¢Éúά»¤µÄʱºò£¬¸ù¾ÝÐèҪά»¤µÄÄÚÈÝ£¬Ö»ÐèÒªÔÚºÜÉٵĵط½½øÐе÷Õû¼´¿É¡£±ÈÈçÒ»¸öÔªËØµÄid±äÁË£¬ÄÇÎÒÖ»ÒªÔÚelementsÀïÃæ¸üоÍÐÐÁË¡£±ÈÈç²âÊÔµÄÁ÷³Ìµ÷ÕûÁË£¬ÒÔǰÊÇABCµÄÒ³ÃæË³Ðò£¬ÏÖÔÚÊÇACBµÄÒ³ÃæË³Ðò£¬ÄÇôֻҪÔÚtestflow²ã½øÐе÷Õû¼´¿É¡£

ÄÇô»Øµ½ÎÒÃǵıêÌ⣬Á÷³ÌÓëÊý¾Ý·ÖÀ룬ʵ¼ÊÉÏĿǰÎÒÃǵÄÁ÷³Ì¶¼¼¯ÖÐÔÚtestflowÒÔ¼°ÏÂÃæµÄ²¿·Ö£¬¶øÊý¾ÝÒ»°ã¶¼ÊÇÔÚ°¸Àý²ãÈ¥¸øÁ÷³Ì²ã´«µÝ£¬Õâ¾ÍÊÇÎÒÃǵÄÁ÷³ÌÓëÊý¾Ý·ÖÀëÁË¡£µ±È»£¬ÎÒÃÇ»¹¿ÉÒÔÔÙ½øÒ»²½µÄ·ÖÀ룬°ÑÊý¾Ý·Åµ½ÍâÃæ£¬ÍÑÀëÎÒÃǵݸÀý£¬ÔÚÔËÐеÄʱºò²Å´«µÝ½øÐУ¬Ò²ÊÇ¿ÉÒÔʵÏֵġ£¸ø´ó¼Ò¿´¡£

   
3939 ´Îä¯ÀÀ       27
Ïà¹ØÎÄÕÂ

΢·þÎñ²âÊÔÖ®µ¥Ôª²âÊÔ
һƪͼÎÄ´øÄãÁ˽â°×ºÐ²âÊÔÓÃÀýÉè¼Æ·½·¨
È«ÃæµÄÖÊÁ¿±£ÕÏÌåϵ֮»Ø¹é²âÊÔ²ßÂÔ
È˹¤ÖÇÄÜ×Ô¶¯»¯²âÊÔ̽Ë÷
Ïà¹ØÎĵµ

×Ô¶¯»¯½Ó¿Ú²âÊÔʵ¼ù֮·
jenkins³ÖÐø¼¯³É²âÊÔ
ÐÔÄܲâÊÔÕï¶Ï·ÖÎöÓëÓÅ»¯
ÐÔÄܲâÊÔʵÀý
Ïà¹Ø¿Î³Ì

³ÖÐø¼¯³É²âÊÔ×î¼Ñʵ¼ù
×Ô¶¯»¯²âÊÔÌåϵ½¨ÉèÓë×î¼Ñʵ¼ù
²âÊԼܹ¹µÄ¹¹½¨ÓëÓ¦ÓÃʵ¼ù
DevOpsʱ´úµÄ²âÊÔ¼¼ÊõÓë×î¼Ñʵ¼ù