#1
  1. A Change of Season
    Devshed Expert (3500 - 3999 posts)

    Join Date
    Mar 2004
    Location
    Next Door
    Posts
    3,548
    Rep Power
    221

    Testing PHP Application


    Hey;

    What's the best way to test a sales process of this application?

    It has +10 steps, select product, add shipping, calculate tax, add account details, pay by Braintree, check the api etc etc and each step is pretty complex.

    It's all pretty complex steps.

    If I wanna test, I have to go from step 1.

    What is a good way to only test step 5 onward for example.

    Thanks
  2. #2
  3. Impoverished Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    16,834
    Rep Power
    9646
    Cause steps 1-4 to happen automatically? Make them optional?

    If the steps are required then they have to happen. If you don't want to do them then something else has to do them.
  4. #3
  5. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2017
    Location
    Lithuania
    Posts
    48
    Rep Power
    46
    Difficult to say without knowing each step and the structure of your application, but maybe you can automated 1-4 steps somehow? For example, if these steps simply add some data to database, maybe you can write a simple script that automatically inserts pre-filled data into database, then comment out 1-4 steps in your script, and start at step 5, using just inserted data?

    Or write some curl script that emulates form submission for 1-4 steps?
  6. #4
  7. A Change of Season
    Devshed Expert (3500 - 3999 posts)

    Join Date
    Mar 2004
    Location
    Next Door
    Posts
    3,548
    Rep Power
    221
    I remember some weird debug tools I saw a few years ago.

    I think it was with Zend Framework or Laravel.

    It was so weird and everyone pretneding it's cool.

    Like:

    If the form is posted
    Then run the query
    It was testing feature of an app maybe... not sure

IMN logo majestic logo threadwatch logo seochat tools logo