#1
  1. A Change of Season
    Devshed Loyal (3000 - 3499 posts)

    Join Date
    Mar 2004
    Location
    Next Door
    Posts
    3,247
    Rep Power
    220

    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. Maddening Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    16,459
    Rep Power
    9645
    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. Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2017
    Location
    Lithuania
    Posts
    25
    Rep Power
    0
    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 Loyal (3000 - 3499 posts)

    Join Date
    Mar 2004
    Location
    Next Door
    Posts
    3,247
    Rep Power
    220
    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