Date: Tue, 26 Jul 2005 20:03:04 GMT From: Aldert Nooitgedagt <aldert@nooitgedagt.net> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/84138: [NEW PORT] - TCLWEBTEST - tool to write automated tests for web applications Message-ID: <200507262003.j6QK342k045157@www.freebsd.org> Resent-Message-ID: <200507262010.j6QKAJCb082570@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 84138 >Category: ports >Synopsis: [NEW PORT] - TCLWEBTEST - tool to write automated tests for web applications >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Tue Jul 26 20:10:18 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Aldert Nooitgedagt >Release: 5.4 >Organization: >Environment: FreeBSD freebsd54.localdomain 5.4-RELEASE FreeBSD 5.4-RELEASE #0: Sun May 8 10:21:06 UTC 2005 root@harlow.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 >Description: Is anybody willing to commit this before the PORTS FREEZE, please ?! The port has been reviewed already, so no problems expected. Port belongs in: PORTSDIR/www/ Info: http://tclwebtest.sourceforge.net/ Tclwebtest, tdom and aolserver-openacs-pg are dependencies for openacs and openacs-dotlrn (Elearning webcommunity platform). Thanks. Let me know if you want the ports by mail. >How-To-Repeat: >Fix: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # tclwebtest # tclwebtest/distinfo # tclwebtest/Makefile # tclwebtest/pkg-descr # tclwebtest/pkg-plist # echo c - tclwebtest mkdir -p tclwebtest > /dev/null 2>&1 echo x - tclwebtest/distinfo sed 's/^X//' >tclwebtest/distinfo << 'END-of-tclwebtest/distinfo' XMD5 (tclwebtest-1.0.tar.gz) = d1099015c21207336f34141ad55e8263 XSIZE (tclwebtest-1.0.tar.gz) = 111768 END-of-tclwebtest/distinfo echo x - tclwebtest/Makefile sed 's/^X//' >tclwebtest/Makefile << 'END-of-tclwebtest/Makefile' X# New ports collection makefile for: tclwebtest X# Date created: July 2005 X# Whom: Aldert Nooitgedagt X# X# $FreeBSD$ X# X XPORTNAME= tclwebtest XPORTVERSION= 1.0 XCATEGORIES?= www XMASTER_SITES?= ${MASTER_SITE_SOURCEFORGE} XMASTER_SITE_SUBDIR?= ${PORTNAME} X XMAINTAINER?= aldert@nooitgedagt.net XCOMMENT= Tool for issuing http requests and dealing with the result X XLIB_DEPENDS+= tcl${TCLVERSION:S/.//}.1:${PORTSDIR}/lang/tcl${TCLVERSION:S/.//}-thread X XNO_BUILD= YES X XTCLVERSION= 8.4 XTWTBASE= ${PREFIX}/tclwebtest-${PORTVERSION} XTWTBASEL= ${PREFIX}/tclwebtest X XPLIST_SUB+= TWTDIR=tclwebtest-${PORTVERSION} TCLLIB=lib/tcl${TCLVERSION} X Xpost-extract: X @${FIND} ${WRKSRC} -name CVS | ${XARGS} ${RM} -rf X @${SED} -i "" -e "s| tclsh | tclsh${TCLVERSION} |g" ${WRKSRC}/tclwebtest X Xdo-install: X @${TEST} -d ${TWTBASE} || ( ${MKDIR} ${TWTBASE} && \ X ${CP} -R ${WRKSRC}/lib ${TWTBASE} && \ X ${CP} -R ${WRKSRC}/selftest ${TWTBASE} && \ X ${CP} ${WRKSRC}/tclwebtest ${TWTBASE} ) X @${MKDIR} ${EXAMPLESDIR} X @${CP} -R ${WRKSRC}/openacs4tests ${EXAMPLESDIR} X X.if !defined(NOPORTDOCS) X @ ${ECHO} "Installing docs" X @ ${MKDIR} ${DOCSDIR}/doc X @ ${TAR} -C ${WRKSRC} -c -f - ChangeLog README TODO index.html generate_docs.test | ${TAR} -C ${DOCSDIR} -x -f - X @ ${TAR} -C ${WRKSRC}/doc -c -f - . | ${TAR} -C ${DOCSDIR}/doc -x -f - X.endif X Xpost-install: X @${TEST} -L ${TWTBASEL} || ${LN} -s ${TWTBASE} ${TWTBASEL} X @${TEST} -L ${LOCALBASE}/lib/tcl${TCLVERSION}/tclwebtest || ${LN} -s ${TWTBASEL}/lib ${LOCALBASE}/lib/tcl${TCLVERSION}/tclwebtest X @${TEST} -L ${PREFIX}/bin/tclwebtest || ${LN} -s ${TWTBASEL}/tclwebtest ${PREFIX}/bin X X @${ECHO_CMD} "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++" X @${ECHO_CMD} " You may need to set TCLLIBPATH in your environment. " X @${ECHO_CMD} " Set it to ${TWTBASEL} if tclwebtest barks at you. " X @${ECHO_CMD} "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++" X X.include <bsd.port.mk> END-of-tclwebtest/Makefile echo x - tclwebtest/pkg-descr sed 's/^X//' >tclwebtest/pkg-descr << 'END-of-tclwebtest/pkg-descr' XTclwebtest is a tool to write automated tests for web applications. XIt provides a simple API for issuing http requests, dealing with the Xresult and assume specific response values, while taking care of the Xdetails such as redirects and cookies. X XIt has some basic html parsing functionality, to provide access to Xelements of the result html page that are needed for testing. X XTclWebtest should be suitable for testing larger chains of user Xinteraction on a web application, for example a full ecommerce Xordering session. X XTclwebtest could visit an ecommerce site as Xanonymous user, add some products to its shopping cart, check out Xthe cart, register itself as user and enter a test address etc. XThe test script could also include the administration part of the Xinteraction, by explicitely logging in as site admin, reviewing and Xprocessing the order, nuking the test user etc. X XWWW: http://tclwebtest.sourceforge.net X X- Aldert Xaldert@nooitgedagt.net END-of-tclwebtest/pkg-descr echo x - tclwebtest/pkg-plist sed 's/^X//' >tclwebtest/pkg-plist << 'END-of-tclwebtest/pkg-plist' Xbin/tclwebtest X%%DOCSDIR%%/ChangeLog X%%DOCSDIR%%/README X%%DOCSDIR%%/TODO X%%DOCSDIR%%/doc/api_all.html X%%DOCSDIR%%/doc/api_public.html X%%DOCSDIR%%/doc/index.html X%%DOCSDIR%%/doc/matching.txt X%%DOCSDIR%%/doc/others.html X%%DOCSDIR%%/doc/others.txt X%%DOCSDIR%%/doc/output.html X%%DOCSDIR%%/doc/req.txt X%%DOCSDIR%%/generate_docs.test X%%DOCSDIR%%/index.html X%%EXAMPLESDIR%%/openacs4tests/bboard_many_posts.test X%%EXAMPLESDIR%%/openacs4tests/calendar/000_install_calendar.test X%%EXAMPLESDIR%%/openacs4tests/calendar/001_mount_calendar.test X%%EXAMPLESDIR%%/openacs4tests/calendar/010_add_date.test X%%EXAMPLESDIR%%/openacs4tests/calendar/011_delete_date.test X%%EXAMPLESDIR%%/openacs4tests/calendar/020_admin_not_allowed.test X%%EXAMPLESDIR%%/openacs4tests/calendar/021_not_logged_in.test X%%EXAMPLESDIR%%/openacs4tests/calendar/997_unmount_calendar.test X%%EXAMPLESDIR%%/openacs4tests/calendar/998_delete_calendar_instance.test X%%EXAMPLESDIR%%/openacs4tests/calendar/999_uninstall_calendar.test X%%EXAMPLESDIR%%/openacs4tests/calendar/settings X%%EXAMPLESDIR%%/openacs4tests/calendar/tmp.test X%%EXAMPLESDIR%%/openacs4tests/cookies.test X%%EXAMPLESDIR%%/openacs4tests/doc.test X%%EXAMPLESDIR%%/openacs4tests/helloworld.test X%%EXAMPLESDIR%%/openacs4tests/install_etp.test X%%EXAMPLESDIR%%/openacs4tests/notes_mount.test X%%EXAMPLESDIR%%/openacs4tests/openacs4tests.settings X%%EXAMPLESDIR%%/openacs4tests/page-drop.test X%%EXAMPLESDIR%%/openacs4tests/persistent_login.test X%%EXAMPLESDIR%%/openacs4tests/sessions.test X%%EXAMPLESDIR%%/openacs4tests/sitemap.test X%%EXAMPLESDIR%%/openacs4tests/templating.test X%%EXAMPLESDIR%%/openacs4tests/wp-slim-delete-all.test X%%EXAMPLESDIR%%/openacs4tests/wp-slim.test Xtclwebtest X%%TWTDIR%%/lib/entities.tcl X%%TWTDIR%%/lib/from_openacs.tcl X%%TWTDIR%%/lib/pkgIndex.tcl X%%TWTDIR%%/lib/tclwebtest.tcl X%%TWTDIR%%/selftest/ad_proc.test X%%TWTDIR%%/selftest/asserts.test X%%TWTDIR%%/selftest/caption.html X%%TWTDIR%%/selftest/caption.test X%%TWTDIR%%/selftest/caption2.html X%%TWTDIR%%/selftest/caption3.html X%%TWTDIR%%/selftest/caption3.test X%%TWTDIR%%/selftest/checkboxes.html X%%TWTDIR%%/selftest/checkboxes.test X%%TWTDIR%%/selftest/directory_traversal.test X%%TWTDIR%%/selftest/entity.test X%%TWTDIR%%/selftest/field_order.test X%%TWTDIR%%/selftest/field_order2.html X%%TWTDIR%%/selftest/field_order2.test X%%TWTDIR%%/selftest/fields_iterate.test X%%TWTDIR%%/selftest/forms.html X%%TWTDIR%%/selftest/forms.test X%%TWTDIR%%/selftest/forms2.html X%%TWTDIR%%/selftest/forms2.test X%%TWTDIR%%/selftest/image_submit.gif X%%TWTDIR%%/selftest/image_submit.html X%%TWTDIR%%/selftest/image_submit.html~ X%%TWTDIR%%/selftest/image_submit.test X%%TWTDIR%%/selftest/image_submit.test~ X%%TWTDIR%%/selftest/link_fail.test X%%TWTDIR%%/selftest/links.html X%%TWTDIR%%/selftest/links.test X%%TWTDIR%%/selftest/links2.html X%%TWTDIR%%/selftest/links2.test X%%TWTDIR%%/selftest/links_empty.html X%%TWTDIR%%/selftest/namespace.test X%%TWTDIR%%/selftest/radio.html X%%TWTDIR%%/selftest/radio.test X%%TWTDIR%%/selftest/regsplit.test X%%TWTDIR%%/selftest/reset_session.test X%%TWTDIR%%/selftest/segfault X%%TWTDIR%%/selftest/select.html X%%TWTDIR%%/selftest/select.test X%%TWTDIR%%/selftest/select2.test X%%TWTDIR%%/selftest/select_many.html X%%TWTDIR%%/selftest/select_many.test X%%TWTDIR%%/selftest/simple_form.html X%%TWTDIR%%/selftest/simple_form.test X%%TWTDIR%%/selftest/strip_comments.test X%%TWTDIR%%/selftest/url_anchor.test X%%TWTDIR%%/tclwebtest X@dirrm %%TWTDIR%%/selftest X@dirrm %%TWTDIR%%/lib X@dirrm %%TWTDIR%% X@dirrm %%EXAMPLESDIR%%/openacs4tests/calendar X@dirrm %%EXAMPLESDIR%%/openacs4tests X@dirrm %%EXAMPLESDIR%% X@dirrm %%DOCSDIR%%/doc X@dirrm %%DOCSDIR%% X@cwd %%LOCALBASE%% X%%TCLLIB%%/tclwebtest END-of-tclwebtest/pkg-plist exit >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200507262003.j6QK342k045157>