Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

oscommerce test automation ?


bruyndoncx

Recommended Posts

finishing of an update to my webshop and another round of testing is needed.

 

trying to work smarter, not harder, I wonder if I'm the only one who would like to automate some of the testing.

 

I have been looking at robotframework https://github.com/robotframework/and selenium to automate the user testing.

Also read a little about fitnesse

I'm not explicitly looking for unit testing. I'd rather have something that mimics the browser behaviour

 

Anyone around with experience in this with oscommerce or other web(php) applications ?

 

Others that are worthwhile looking at ?

 

BTW - looking for opensource so that it would be something that people can use/re-use and contribute freely to a repository of testcases

KEEP CALM AND CARRY ON

I do not use the responsive bootstrap version since i coded my responsive version earlier, but i have bought every 28d of code package to support burts effort and keep this forum alive (albeit more like on life support).

So if you are still here ? What are you waiting for ?!

 

Find the most frequent unique errors to fix:

grep "PHP" php_error_log.txt | sed "s/^.* PHP/PHP/g" |grep "line" |sort | uniq -c | sort -r > counterrors.txt

Link to comment
Share on other sites

A couple of years ago I did a project for testing a web-interface product using Selenium and a contributed Perl binding library. As I recall, Selenium was quite touchy about how you treated it, and would lock up for no apparent reason (such as making two calls too close together, before the browser was quite done with the first). Anyway, I was never quite happy with its behavior. It was quite flexible in what it could do, so you could send actions to any browser widget, and read back screen content, and then do with that whatever you wanted. This is opposed to something that blindly clicks on screen position X,Y and/or plays back a sequence of operations by rote. Of course, you have to spend a fair amount of effort to find the right HTML entity to work with (ID, class, hierarchy location), which could change radically with every update to osC. For that reason alone, I'm not sure such automated testing will be worth your while.

 

My (former) employer was not happy with the result, and went with some other technology for the next product's test automation. If I had known that Selenium + Perl would not quite live up to its promises, I probably would have gone in a different direction.

Link to comment
Share on other sites

I have very similar experiences from the past, but still I'm going to give it a try as I think over the last 10 years, something must have been improved :D

 

I found codeception as an opensource php based test automation suite (github) with quite a few integrations available.

It can do unit, functional and acceptance tests.

I installed it through composer (also new for me) and are looking as a first try to add stuff to the cart and start the checkout process. i just learned that it fails with php 5.4 on my site in step 2, so if I can automate those tests, I might start saving myself some time in the next couple of weeks ...

 

At the 'Hello homepage ' stage rightnow :cool_tag: 

KEEP CALM AND CARRY ON

I do not use the responsive bootstrap version since i coded my responsive version earlier, but i have bought every 28d of code package to support burts effort and keep this forum alive (albeit more like on life support).

So if you are still here ? What are you waiting for ?!

 

Find the most frequent unique errors to fix:

grep "PHP" php_error_log.txt | sed "s/^.* PHP/PHP/g" |grep "line" |sort | uniq -c | sort -r > counterrors.txt

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...