edx - How to test 'studio_view' in xblock-sdk? -


i'm developing custom-xblock, course-creator can add html in predefined , pre-designed block. have installed xblock-sdk , using same xblock development. can test student_view in xblock-sdk want test studio_view in same environment.

right in forward test studio_view, have install developed custom-xblock in edx-platform. if there way test in xblock-sdk development can faster , reliable.

i have dogwood release installed in edx-devstack.

depends on mean "test". if that's manual testing - possible, easier install locally , check if works in actual studio. access views other student_view, open scenario xblock, add /${view_name} url - should open view (i.e. localhost:8080/scenario/test/student_view`)

if you're talking unittests - read along.

there's xblock-utils repository provides quite useful base classes. 1 of classes, seleniumbasetest might give insights on how (these lines in particular).

or can subclass test class , use (example: in poll xblock tests). there's 1 possibly misleading/confusing thing studio views - there 2 of them: * studio_view - view displayed when click "edit" on xblock in popup * author_view - what's shown in unit. defaults student_view show same content students , authors.

note full studio functionality won't available there - parts of external block's studio_view , author_view, won't there in sdk.


Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -