Source:
<code>private void createProject() { ProjectManager projectManager = ProjectManager.getInstance(); Project project = new Project(null, UiTestUtils.DEFAULT_TEST_PROJECT_NAME); Sprite firstSprite = new SingleSprite("cat"); Script testScript = new WhenNfcScript(); PlaySoundBrick playSoundBrick = new PlaySoundBrick(); testScript.addBrick(playSoundBrick); SetVariableBrick setVariableBrickId = new SetVariableBrick(Sensors.NFC_TAG_ID); testScript.addBrick(setVariableBrickId); SetVariableBrick setVariableBrickMessage = new SetVariableBrick(Sensors.NFC_TAG_MESSAGE); testScript.addBrick(setVariableBrickMessage); firstSprite.addScript(testScript); project.getDefaultScene().addSprite(firstSprite); <START> solo.sleep(5000); <END> projectManager.setProject(project); projectManager.setCurrentSprite(firstSprite); projectManager.setCurrentScript(testScript); tagDataList = projectManager.getCurrentSprite().getNfcTagList(); NfcTagData tagData = new NfcTagData(); tagData.setNfcTagName(FIRST_TEST_TAG_NAME); tagData.setNfcTagUid(NfcHandler.byteArrayToHex(FIRST_TEST_TAG_ID.getBytes())); tagDataList.add(tagData); NfcTagData tagData2 = new NfcTagData(); tagData2.setNfcTagName(SECOND_TEST_TAG_NAME); tagData2.setNfcTagUid(NfcHandler.byteArrayToHex(SECOND_TEST_TAG_ID.getBytes())); tagDataList.add(tagData2); soundInfoList = projectManager.getCurrentSprite().getSoundList(); soundFile = UiTestUtils.saveFileToProject(UiTestUtils.DEFAULT_TEST_PROJECT_NAME, project.getDefaultScene().getName(), "longsound.mp3", RESOURCE_SOUND, getInstrumentation().getContext(), UiTestUtils.FileTypes.SOUND); SoundInfo soundInfo = new SoundInfo(); soundInfo.setSoundFileName(soundFile.getName()); soundInfo.setTitle(soundName); soundInfoList.add(soundInfo); ProjectManager.getInstance().getFileChecksumContainer() .addChecksum(soundInfo.getChecksum(), soundInfo.getAbsolutePath()); }</code><technical_language>Please remove :wink:</technical_language>

Target:
private void createProject() { ProjectManager projectManager = ProjectManager.getInstance(); Project project = new Project(null, UiTestUtils.DEFAULT_TEST_PROJECT_NAME); Sprite firstSprite = new SingleSprite("cat"); Script testScript = new WhenNfcScript(); PlaySoundBrick playSoundBrick = new PlaySoundBrick(); testScript.addBrick(playSoundBrick); SetVariableBrick setVariableBrickId = new SetVariableBrick(Sensors.NFC_TAG_ID); testScript.addBrick(setVariableBrickId); SetVariableBrick setVariableBrickMessage = new SetVariableBrick(Sensors.NFC_TAG_MESSAGE); testScript.addBrick(setVariableBrickMessage); firstSprite.addScript(testScript); project.getDefaultScene().addSprite(firstSprite); projectManager.setProject(project); projectManager.setCurrentSprite(firstSprite); projectManager.setCurrentScript(testScript); tagDataList = projectManager.getCurrentSprite().getNfcTagList(); NfcTagData tagData = new NfcTagData(); tagData.setNfcTagName(FIRST_TEST_TAG_NAME); tagData.setNfcTagUid(NfcHandler.byteArrayToHex(FIRST_TEST_TAG_ID.getBytes())); tagDataList.add(tagData); NfcTagData tagData2 = new NfcTagData(); tagData2.setNfcTagName(SECOND_TEST_TAG_NAME); tagData2.setNfcTagUid(NfcHandler.byteArrayToHex(SECOND_TEST_TAG_ID.getBytes())); tagDataList.add(tagData2); soundInfoList = projectManager.getCurrentSprite().getSoundList(); soundFile = UiTestUtils.saveFileToProject(UiTestUtils.DEFAULT_TEST_PROJECT_NAME, project.getDefaultScene().getName(), "longsound.mp3", RESOURCE_SOUND, getInstrumentation().getContext(), UiTestUtils.FileTypes.SOUND); SoundInfo soundInfo = new SoundInfo(); soundInfo.setSoundFileName(soundFile.getName()); soundInfo.setTitle(soundName); soundInfoList.add(soundInfo); ProjectManager.getInstance().getFileChecksumContainer() .addChecksum(soundInfo.getChecksum(), soundInfo.getAbsolutePath()); }