jssanshi / concerto-platform

Automatically exported from code.google.com/p/concerto-platform
0 stars 0 forks source link

Error in adaptive test example #29

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
I am using using the concerto server to create an adaptive test (login: 
ramatius). See test astr_adpt_test, table astr_adpt_tbl. I have created the 
adaptive test you have given, with MCQs instead of test answers. While running 
the test, the system throws up the following error,

R return code
1
R code

user_name <- 'three'
user_name <<- convertVariable(user_name)

hall_ticket <- 'three'
hall_ticket <<- convertVariable(hall_ticket)

TIME_TAKEN <- '5.631'
TIME_TAKEN <<- convertVariable(TIME_TAKEN)

LAST_PRESSED_BUTTON_NAME <- 'start_test'
LAST_PRESSED_BUTTON_NAME <<- convertVariable(LAST_PRESSED_BUTTON_NAME)

CONCERTO_TEST_FLOW<-4
evalWithTimeout({
while(CONCERTO_TEST_FLOW > 0){
CONCERTO_TEST_FLOW <- 
do.call(paste('CONCERTO_Test',CONCERTO_TEST_ID,'Section',CONCERTO_TEST_FLOW,sep=
''),list())
}
CONCERTO_FLOW_LOOP_FINISHED <- TRUE
},timeout=60,onTimeout='error')
if(CONCERTO_TEST_FLOW==-2) update.session.release(1)
R output
user_name <- 'three'
> user_name <<- convertVariable(user_name)
> hall_ticket <- 'three'
> hall_ticket <<- convertVariable(hall_ticket)
> TIME_TAKEN <- '5.631'
> TIME_TAKEN <<- convertVariable(TIME_TAKEN)
> LAST_PRESSED_BUTTON_NAME <- 'start_test'
> LAST_PRESSED_BUTTON_NAME <<- convertVariable(LAST_PRESSED_BUTTON_NAME)
> CONCERTO_TEST_FLOW<-4
> evalWithTimeout({
+ while(CONCERTO_TEST_FLOW > 0){
+ CONCERTO_TEST_FLOW <- 
do.call(paste('CONCERTO_Test',CONCERTO_TEST_ID,'Section',CONCERTO_TEST_FLOW,sep=
''),list())
+ }
+ CONCERTO_FLOW_LOOP_FINISHED <- TRUE
+ },timeout=60,onTimeout='error')
[1] "Start of section with index: 4"
[1] "Start of section with index: 5"
[1] "Start of section with index: 6"
[1] "Start of section with index: 7"
[1] "Start of section with index: 8"
[1] "Start of section with index: 9"
Error during wrapup: Error in value[[3L]](cond) : non-numeric argument to 
binary operator
Calls: evalWithTimeout ... tryCatch -> tryCatchList -> tryCatchOne -> 
<Anonymous>

Execution halted

There is no non-numeric data present. The screenshot of step (9)'s definition 
is attached. Why is the system crashing ?

Much appreciate your help.

Regards,
Rama

Original issue reported on code.google.com by ramat...@gmail.com on 12 Oct 2012 at 4:57

Attachments:

GoogleCodeExporter commented 9 years ago

Looks like concerto is expecting a sorted list for "difficulties". It would be 
great if this can be mentioned in the demo document.

Also, the database field type for "difficulty" has to be "float". If I use 
"string", it doesn't protest, but the test crashes. Pls add this to the 
documentation as well.

Pls close this issue.

Regards,
Rama

Original comment by ramat...@gmail.com on 12 Oct 2012 at 6:45

GoogleCodeExporter commented 9 years ago

Original comment by LisPrzem...@gmail.com on 13 Oct 2012 at 6:04