(四)程序测试

  • 在编写好程序后,首先需要在自己的电脑上进行调试。在调试前需要在settings.py中进行一些设定:以上面编写的三个程序为例,在SESSION_CONFIGS中填入内容:

    SESSION_CONFIGS = [
         dict(
             name = 'questionnaire',
             display_name = 'questionnaire',
             app_sequence = ['questionnaire'],
             num_demo_participants = 2,
        ),
        dict(
             name = 'publicgood',
             display_name = 'publicgood',
             app_sequence = ['publicgood'],
             num_demo_participants = 6,
        ),
        dict(
             name = 'trustgame',
             display_name = 'trustgame',
             app_sequence = ['trustgame'],
             num_demo_participants = 2,
        ),
    ]
78 / 168