Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-12938

[Playground] Run Java SDK Beam example

Details

    Description

      As a Beam Playground user, I want to get execution output for the specific Java example code that I run in Beam Playground

      Acceptance criteria:

      1. Beam Java example code executed on the backend
      2. Output received by frontend
      3. Compilation failures are caught and redirected to the frontend app
      4. Runtime failures are caught and redirected to the frontend app

       

      Scenario: Java example code running

      Given: User ran valid Apache Beam Java example code in Beam Playground

      When: Backend accepts the GCRP request

      Then: Backend runs a new background process using the Javac console to compile code snippet

       __ 

      Given: Backend ran a new background process using the Java console command to compile code snippet

      When: Compilation is completed

      And: jar file located in local FS

      Then: Backend app runs jar file using Java console command

       __ 

      Given: Backend app runs jar file using Java console command

      When: Code executed completely

      And: Stdout and stderr files located at local fs

      Then: Backend reads the stdout and sends its content to the frontend with complete message code

       __ 

      Given: Backend app runs jar file using Java console command

      When: Code executed with error

      And: Stdout and stderr files located at local fs

      Then: Backend reads the stderr and sends its content to the frontend with an error message code

       __ 

      Given: Backend app runs jar file using Java console command

      When: Execution is finished with any code

      And: Backend sent a response to frontend

      Then: Backend clean-ups build and runtime artifacts.

      Attachments

        Activity

          People

            IKozyrev Ilya Kozyrev
            alskos Alex Kosolapov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 8h Original Estimate - 8h
                8h
                Remaining:
                Time Spent - 16h 40m Remaining Estimate - 3h 10m
                3h 10m
                Logged:
                Time Spent - 16h 40m Remaining Estimate - 3h 10m
                16h 40m