Histórico da Página
Problema
Script funciona, porém a atividade SQL apresenta erros.
Solução
Este problema acontece pois, mesmo quando o script webservice finaliza com (200 OK), independente da mensagem de erro do processo, o TestFlow considera que o script foi executado com sucesso, dando uma falsa impressão ao teste.
Painel | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
Para solucionar este problema:
|
Problema
Script winforms apresentando erros como o log abaixo:
Bloco de código |
---|
Log: Erro durante a ação 3. The message with Action 'http://tempuri.org/IWinFormManagerService/Refresh' cannot be processed at the receiver, due to a ContractFilter mismatch at the EndpointDispatcher. This may be because of either a contract mismatch (mismatched Actions between sender and receiver) or a binding/security mismatch between the sender and the receiver. Check that sender and receiver have the same contract and the same binding (including security requirements, e.g. Message, Transport, None).The message with Action 'http://tempuri.org/IWinFormManagerService/Refresh' cannot be processed at the receiver, due to a ContractFilter mismatch at the EndpointDispatcher. This may be because of either a contract mismatch (mismatched Actions between sender and receiver) or a binding/security mismatch between the sender and the receiver. Check that sender and receiver have the same contract and the same binding (including security requirements, e.g. Message, Transport, None). |
Solução
Após a atualização da devExpress, os scripts Winforms passaram a exibir esse problema nas ações de Refresh. A solução é remover todas as ações de refresh da atividade Winforms.
Painel | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
Para solucionar esse problema:
|
Problema
Não consigo simular o problema acontecendo pois o Testflow ao final do script deleta a base com o cenário pronto.
Solução
Há uma série de métodos para conferir o script executando, o meu método preferido é simplesmente alterar o projeto, alterando a última ação para um código c# que não faz nada. Desta forma, podemos acessar a base onde o script executou para verificar / debugar o cenário do projeto.
Painel | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||
Editando o projeto
|
Problema
Preciso executar um script winforms porém o RM não enxerga o RM.exe como programa executável.
Solução
Para iniciar uma atividade winforms, precisamos usar uma TAG no RM que é a /automationtest. Sem ela, o TestFlow não conseguirá renderizar as telas corretamente.
Painel | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||
Para executar / criar / analisar uma automação winforms seguir os passos:
|