+ 3

How does Sololearn automated test case works?

Hey geeks, I'm interested to know how Sololearn automated test case system works..! Can you suggest me any article regarding the same or any sample code related to this! Thanks in advance!

20th Nov 2020, 4:19 AM
Ankith M Kashyap
Ankith M Kashyap - avatar
7 Respuestas
+ 9
Ankith M Kashyap yes. Ideally the job of this is to take your code, - compile it - check for compilation errors - execute your code by giving some hidden inputs - collect the output from your code - check for runtime errors - match your output with their hidden test outputs - give a verdict accordingly.
20th Nov 2020, 4:41 AM
Arsenic
Arsenic - avatar
+ 4
There are no automated generated test cases on sololearn. It just checks your code with pre-installed test cases. Every time your code is tested with same test cases. That's why they don't show all of them to you
20th Nov 2020, 4:23 AM
Arsenic
Arsenic - avatar
+ 4
They execute some steps: 1: the app sends code and input to server 2: the server executes the code and provides the input 3: the output is sent to the app 4: the app checks the output 5: the output of test cases are shown
20th Nov 2020, 11:40 AM
Aradhay Mathur
Aradhay Mathur - avatar
+ 3
Ankith M Kashyap you are welcome 🙂
20th Nov 2020, 4:43 AM
Arsenic
Arsenic - avatar
+ 2
Arsenic thanks for the reply, but like how it's done (so I'm understanding like this it's a program in a program?)
20th Nov 2020, 4:29 AM
Ankith M Kashyap
Ankith M Kashyap - avatar
+ 2
Arsenic thanks a lot bro!
20th Nov 2020, 4:42 AM
Ankith M Kashyap
Ankith M Kashyap - avatar
+ 2
Hey Aradhay Mathur thanks a lot!
21st Nov 2020, 4:07 AM
Ankith M Kashyap
Ankith M Kashyap - avatar