- Open your AL project in Visual Studio Code.
- In Explorer, select My Test.al and in the editor, add a new test function to the codeunit:
[Test]procedure TestPageTest()beginend;
- We're going to recreate the SuccessTest() test that we created in the previous recipe, only this time, we will create the test to mimic what the user would actually do in the Business Central client. Thinking about what the user does manually to create a new Television Show record, our test needs to do the following:
- Open the Television Show Card page.
- Enter a value into the Code field and validate it to create the new record.
- Let's start by creating a few variables that we'll need in our TestPageTest() function:
TelevisionShow: Record "Television ...