Àå°í - ¼¿·¹´½ Å×½ºÆ® - ·¯³Ê

¼¿·¹´½ À¥ Å×½ºÆ® µµ±¸¸¦ »ç¿ëÇÏ¿© DjangoÀÇ manage.py Å×½ºÆ® ºÎ¼Ó ¸í·É¿¡ ±â´É Å×½ºÆ®¸¦ ÅëÇÕÇÕ´Ï´Ù.
Áö±Ý ´Ù¿î·Îµå

Àå°í - ¼¿·¹´½ Å×½ºÆ® - ·¯³Ê ¼øÀ§ ¹× ¿ä¾à

±¤°í

  • Rating:
  • ƯÇã:
  • BSD License
  • °¡°Ý:
  • FREE
  • °Ô½ÃÀÚ À̸§:
  • Daniel Mizyrycki

Àå°í - ¼¿·¹´½ Å×½ºÆ® - ·¯³Ê ű×


Àå°í - ¼¿·¹´½ Å×½ºÆ® - ·¯³Ê ¼³¸í

¼¿·¹´½ À¥ Å×½ºÆ® µµ±¸¸¦ »ç¿ëÇÏ¿© DjangoÀÇ Manage.py Å×½ºÆ® ºÎ¼Ó ¸í·É¿¡ ±â´É Å×½ºÆ®¸¦ ÅëÇÕÇÕ´Ï´Ù. Django-Selenium-Test-runner´Â ¼¿·¹´½ À¥ Å×½ºÆ® ÅøÀ» »ç¿ëÇÏ¿© DjangoÀÇ Manage.py Å×½ºÆ® ºÎ¼Ó ¸í·É¿¡ ±â´É Å×½ºÆ®¸¦ ÅëÇÕÇÏ´Â Django Ç÷¯±×ÀÎÀÔ´Ï´Ù.ÀÌ ÆÐÅ°Áö´Â Selenium Tools.selenium Å×½ºÆ®¸¦ »ç¿ëÇÏ¿© Django¿¡¼­ ±â´É Å×½ºÆ®¸¦ ¿ëÀÌÇÏ°ÔÇÏ°í ´Ü¼øÈ­Çß½À´Ï´Ù. ÀÚµ¿ À¥ ¼­¹ö Å×½ºÆ®¸¦ Çã¿ëÇÏ´Â »ç¿ëÀÚ / À¥ ºê¶ó¿ìÀú »óÈ£ ÀÛ¿ëÀ» ¿¡¹Ä·¹ÀÌÆ®ÇÕ´Ï´Ù. ÀÌ Å×½ºÆ®´Â`selenium-ide`_À» »ç¿ë ÇÏ¿©ÀÌ Å×½ºÆ® ·¯³Ê¿¡ ´ëÇØÀÌ Å×½ºÆ® ·¯³Ê¿¡ ´ëÇØ Python ÆÄÀÏ·Î ³»º¸³¾ ¼ö ÀÖ½À´Ï´Ù. ¼¿·¹´½ -IDE´Â ¿öµå ÇÁ·Î¼¼½Ì ÀÀ¿ë ÇÁ·Î±×·¥ÀÇ ¸ÅÅ©·Î ·¹ÄÚ´õ¿Í À¯»çÇÑ ¹æ½ÄÀ¸·Î À¥ ºê¶ó¿ìÀú¿Í À¯»çÇÑ ¹æ½ÄÀ¸·Î À¥ ºê¶ó¿ìÀú¿Í À¯»çÇÑ ½Ã°£À» ÅëÇØ ½Ç½Ã°£À¸·Î ±â·Ï ÇÒ ¼ö ÀÖ½À´Ï´Ù. ¾ÆÀ̵ð¾î´Â °¢ Å×½ºÆ®°¡ ÀÏ°üµÈ ¹Ì¸® Á¤ÀÇ µÈ »óÅ¿¡ ´ëÇØ ½ÇÇàµÈ´Ù´Â °ÍÀÔ´Ï´Ù. Manage.py DumpData ¼³Ä¡ :`setuptools`_ ¼³Ä¡µÈ °æ¿ì, ´ÙÀ½ ¸í·ÉÀ» ½ÇÇàÇÒ ¼öÀÖ´Â °æ¿ì ´ÙÀ½ ¸í·ÉÀ» ½ÇÇàÇÒ ¼ö ÀÖ½À´Ï´Ù .: Sudo Easy_install Django-Selenium-Test-Runnerif¸¦ ´Ù¿î·Îµå ÇÑ ´ÙÀ½ ÆÐÅ°Áö, ¹æ±Ý Æ÷ÀåÀ» Ç® ¼ö ÀÖ½À´Ï´Ù :: tar zxvf django-selenium-test-runner-0.1.0.tar.gzand "dstest"µð·ºÅ丮 Æ®¸®¸¦ pythonÀÇ »çÀÌÆ® ÆÐÅ°Áö µð·ºÅ丮·Î º¹»çÇÕ´Ï´Ù. /python2.4/site-packages (UNIX, Python 2.4) /usr/lib/python2.5/usr/lib/python2.5/site-packages (UNIX, Python 2.5) /usr/lib/python2.6/dist-packages (UNIX, Python 2.6) Django-Selenium-Test-runner´Â ÇÁ·ÎÁ§Æ®ÀÇ ¼³Á¤¿¡¼­ »ç¿ëÇϵµ·Ï ¼³Á¤µË´Ï´Ù .: test_runner = 'dstest.test_runner.run_tests'usage : µÎ, Django unittest ¹× selenium Å×½ºÆ®´Â Ç¥ÁØ ¸í·É :: python manage.py Å×½ºÆ®·Î ½ÇÇàµË´Ï´Ù. ³» º¸³½ ¼¿·¹´½ Å×½ºÆ®´Â DJango_App_dir / Tests / Selenium / Directories¿¡¼­ °Ë»öµË´Ï´Ù. DJango_App_dir´Â installed_apps¿¡ Á¤ÀÇ µÈ ÀÀ¿ë ÇÁ·Î±×·¥ÀÔ´Ï´Ù. ÀÌ ±âº»°ªÀº selenium_tests_path ¼³Á¤À¸·Î º¯°æÇÒ ¼ö ÀÖ½À´Ï´Ù. Å×½ºÆ® À̸§Àº "test_"·Î ½ÃÀÛÇÕ´Ï´Ù. ÀÌ·¯ÇÑ Å×½ºÆ®¸¦ °¡Á®¿Ã ¶§ DJango_App_dir / tests / __ init__.py ¹× django_app_dir / test / selenium / __ init__.py ÆÄÀÏÀ» django_app_dir / fixtures / test / data¿¡¼­ ±âº»ÀûÀ¸·Î·ÎµåµË´Ï´Ù. °¢ ¼¿·¹´½ Å×½ºÆ®ÀÇ ½ÃÀÛ ºÎºÐ¿¡ÀÖ´Â JSON. ÀÌ ±âº»°ªÀº Á¶¸í±â ¼³Á¤À» »ç¿ëÇÏ¿© º¯°æÇÒ ¼ö ÀÖ½À´Ï´Ù. ettings : Test_runner = 'dstest.test_runner.run_tests'optional ¼³Á¤ÀÌ ¿Ã¹Ù¸£°Ô ¼³Ä¡µÇ¾ú´Ù°í °¡Á¤ÇÕ´Ï´Ù. * SELENIUM_TESTS_PATH - ÀÀ¿ë ÇÁ·Î±×·¥ µð·ºÅ丮 ³»ÀÇ ¼¿·¹´½ Å×½ºÆ®¸¦ ã±â À§ÇØ ±âº» µð·ºÅ丮¸¦ º¯°æÇÕ´Ï´Ù. (±âº»°ª : 'tests / selenium') * Á¶¸í±â - DJango_App_Dir / Fixtures µð·ºÅ丮 ³»¿¡¼­·Îµå ÇÒ ¼öÀÖ´Â Á¶¸í±â ÆÄÀÏ ¸ñ·ÏÀÔ´Ï´Ù. (±âº»°ª : ) * selenium_path - Selenium RC jarÀÇ µð·ºÅ丮 °æ·Î Python µå¶óÀ̹ö (Áï, ¼¿·¹´½ -Server.jar ¹× Selenium.py) (±âº» : Django-Selenium-Test-runner) / dstest°¡ ¼³Ä¡µË´Ï´Ù.) ÆÐÅ°Áö Å×½ºÆ® : Django-selenium-test-runner´Â Django`Tutorial`_À» ±â¹ÝÀ¸·Î ÇÑ ÀÚü Å×½ºÆ® ½ºÀ§Æ®¿Í ÇÔ²² Á¦°øµË´Ï´Ù. ±×°ÍÀº Django °ü¸® ÀÀ¿ë ÇÁ·Î±×·¥¿¡¼­ ¿¹Á¦·Î ºÀ»çÇϵµ·Ï ¼³°èµÇ¾úÀ¸¸ç Django-selenium-test-runner ´É·ÂÀ» ¼îÄÉÀ̽ºÇÕ´Ï´Ù. À̸¦ ½ÇÇàÇÏ·Á¸é CD¸¦ ÆÐÅ°ÁöÀÇ Å×½ºÆ® µð·ºÅ丮¿¡ ³Ö°í ½ÇÇà :: Python RuntestsDependencies : ´ëºÎºÐÀÇ Á¾¼Ó¼ºÀº Django-Selenium-Test-runner ÆÐÅ°Áö¿¡ ÅëÇյǾî ÀÖ½À´Ï´Ù. Áö±ÝÀº Django-Selenium-Test-runner ÆÐÅ°Áö¿¡¼­ *`¼¿·¹´½ RC ¼­¹ö¿Í Python Driver`_¿¡¼­ µ¥ÀÌÅͺ£À̽º¿¡ Agnostic.included¸¦ ¸¸µé±â À§ÇØ ´õ ¸¹Àº Å×½ºÆ®°¡ ÇÊ¿äÇϹǷΠSQLite 3 ¶Ç´Â Postgres°¡ ÇÊ¿äÇÕ´Ï´Ù. ¼¿·¹´½ Å×½ºÆ® ¿£ÁøÀ» Á¦°øÇϽʽÿÀ. selenium-server.jar ¹× selenium.py v1.0.1 *`cherrypy wsgi ¸ÖƼ ½º·¹µå À¥ ¼­¹ö`À» Å×½ºÆ®Çß½À´Ï´Ù. ½Å·ÚÇÒ ¼öÀÖ´Â À¥ ¼­¹ö¸¦ Á¦°øÇϽʽÿÀ. WSGIServer.py V3.1.2 *`Django MediaHandler.py`_, Artem Egorkine¿¡ ÀÇÇØ Å×½ºÆ®µÇ¾ú½À´Ï´Ù. ÆÐÅ°Áö¿¡ Æ÷ÇÔ µÈ Á¤Àû ¹Ìµð¾î Çڵ鷯¸¦ Á¦°øÇϽʽÿÀ. *`Python 2.x`_ ¿©±â¼­ x> = 4. ÆÄÀ̽ã v2.6 *`django 1.x`_·Î Å×½ºÆ®. Django v1.1 *`Java VM ¸í·É ÁÙ runner`_·Î Å×½ºÆ® µÊ. selenium-server.jar ÀÇÁ¸¼ºÀ» Á¦°øÇϽʽÿÀ. Java OpenJDK-6-JRE·Î Å×½ºÆ®µÇ¾ú½À´Ï´Ù. *`SQLite 3`. ÆÄÀ̽ã V2.5 ÀÌ»óÀÌ Á¦°øÇÕ´Ï´Ù. *`Postgres`_ µ¥ÀÌÅͺ£À̽º ¿£ÁøÀ¸·Î »ç¿ëµË´Ï´Ù. Á¶¸í±â¿¡ ´ëÇÑ µ¥ÀÌÅͺ£À̽º º¹Á¦¸¦ Á¦°øÇϽʽÿÀ. Postgres V8.2 *`Python-PostgreSQL µ¥ÀÌÅͺ£À̽º µå¶óÀ̹ö _·Î Å×½ºÆ®µÇ¾ú½À´Ï´Ù. Postgres µ¥ÀÌÅͺ£À̽º¿¡ ´ëÇÑ ¾×¼¼½º¸¦ Á¦°øÇÕ´Ï´Ù. PSYCOPG2 V2.0.5 ¿ä±¸ »çÇ×À¸·Î Å×½ºÆ® : ¡¤ ÆÄÀ̽㠡¤ Àå°í


Àå°í - ¼¿·¹´½ Å×½ºÆ® - ·¯³Ê °ü·Ã ¼ÒÇÁÆ®¿þ¾î