# Softcoded vs Hardcoded

<figure><img src="/files/TftyXr2NyVetnJTBiAF7" alt=""><figcaption><p>Expect - toBe</p></figcaption></figure>

A expressão "EXPECT(1).TOBE(1);" ilustra a expectativa de que um valor gerado pelo sistema corresponda a um valor específico.&#x20;

Nesta abordagem, o conceito de *softcoded* refere-se à geração dinâmica do valor, simbolizado por "EXPECT(1)", enquanto o *hardcoded* se refere ao valor esperado fixo, representado por "TOBE(1)".&#x20;

Isso significa que esperamos que algo gerado pelo sistema tenha determinado valor, combinando a flexibilidade de valores dinâmicos com a rigidez de valores fixos para garantir a precisão dos testes.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://adspacheco.gitbook.io/space-center/testes-automatizados/softcoded-vs-hardcoded.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
