using RFT automated scripts - some questions
I have an automated script I imported into RQM from another machine (#1) that uses datapools. RQM is 2.0.1.1 and RFT is 8.2
I have set it up so the called script can look for an argument and select an appropriate datapool variable based on what was passed in.
I have set it up so the called script can look for an argument and select an appropriate datapool variable based on what was passed in.
- How can I see in the log that it received the variable. I see in the Adapter that if I put the parameter in the script's script arguments, it shows the script name with the argument after it. If I put it in Execution Arguments, it does not show. What is the Execution Arguments in a script?
- This script is called by 2 test cases that need to pass in a different argument based on the test case. However, I only see the "parameter" as part of the script, not the test case. How do I set up the data for a test case to pass data to the executed script?
- I also have a manual script with the same name in the testcase. When starting the TER (by clicking the run arrow), I have to select the automated one. Is there a way to set it up so it filters and just shows either the automated or the manual in the execution. Or do I need to do something with the build environment?
- I changed the datapool data so it uses an incorrect login. No matter what was passed in. The results never showed a failure. What is happening?
- Since this is using datapools, does it capture that and copy it over? Thereby sending back a valid datapool?
4 answers
The script arguments are passed into the script while the execution arguments are passed to the JVM to run the script. That is one question down.
I have an automated script I imported into RQM from another machine (#1) that uses datapools. RQM is 2.0.1.1 and RFT is 8.2
I have set it up so the called script can look for an argument and select an appropriate datapool variable based on what was passed in.How can I see in the log that it received the variable. I see in the Adapter that if I put the parameter in the script's script arguments, it shows the script name with the argument after it. If I put it in Execution Arguments, it does not show. What is the Execution Arguments in a script?
- This script is called by 2 test cases that need to pass in a different argument based on the test case. However, I only see the "parameter" as part of the script, not the test case. How do I set up the data for a test case to pass data to the executed script?
- I also have a manual script with the same name in the testcase. When starting the TER (by clicking the run arrow), I have to select the automated one. Is there a way to set it up so it filters and just shows either the automated or the manual in the execution. Or do I need to do something with the build environment?
- I changed the datapool data so it uses an incorrect login. No matter what was passed in. The results never showed a failure. What is happening?
- Since this is using datapools, does it capture that and copy it over? Thereby sending back a valid datapool?
Answer number 2 associated with the datapool. When the script was imported, it seems to be pulling in the datapool. If the datapool was correct when the script was imported, no matter what I change the DP to afterwords, the script executed from RQM always passes. If I re-import the script with an incorrect value in the DP, the script fails when parameter is set to use the incorrect value. This does not seem to be a good design. That means any change to the DP requires me to re-import and link all test scripts assoicated with the DP to the appropriate test cases.
I have an automated script I imported into RQM from another machine (#1) that uses datapools. RQM is 2.0.1.1 and RFT is 8.2
I have set it up so the called script can look for an argument and select an appropriate datapool variable based on what was passed in.How can I see in the log that it received the variable. I see in the Adapter that if I put the parameter in the script's script arguments, it shows the script name with the argument after it. If I put it in Execution Arguments, it does not show. What is the Execution Arguments in a script?
- This script is called by 2 test cases that need to pass in a different argument based on the test case. However, I only see the "parameter" as part of the script, not the test case. How do I set up the data for a test case to pass data to the executed script?
- I also have a manual script with the same name in the testcase. When starting the TER (by clicking the run arrow), I have to select the automated one. Is there a way to set it up so it filters and just shows either the automated or the manual in the execution. Or do I need to do something with the build environment?
- I changed the datapool data so it uses an incorrect login. No matter what was passed in. The results never showed a failure. What is happening?
- Since this is using datapools, does it capture that and copy it over? Thereby sending back a valid datapool?
More confusion. What I just said below is not true. I ran another set of tests and this time it did use the changed datapool on the system without requiring a re-import. No clue what is really happening when I cannot get consistent results.
Answer number 2 associated with the datapool. When the script was imported, it seems to be pulling in the datapool. If the datapool was correct when the script was imported, no matter what I change the DP to afterwords, the script executed from RQM always passes. If I re-import the script with an incorrect value in the DP, the script fails when parameter is set to use the incorrect value. This does not seem to be a good design. That means any change to the DP requires me to re-import and link all test scripts assoicated with the DP to the appropriate test cases.
I have an automated script I imported into RQM from another machine (#1) that uses datapools. RQM is 2.0.1.1 and RFT is 8.2
I have set it up so the called script can look for an argument and select an appropriate datapool variable based on what was passed in.How can I see in the log that it received the variable. I see in the Adapter that if I put the parameter in the script's script arguments, it shows the script name with the argument after it. If I put it in Execution Arguments, it does not show. What is the Execution Arguments in a script?
- This script is called by 2 test cases that need to pass in a different argument based on the test case. However, I only see the "parameter" as part of the script, not the test case. How do I set up the data for a test case to pass data to the executed script?
- I also have a manual script with the same name in the testcase. When starting the TER (by clicking the run arrow), I have to select the automated one. Is there a way to set it up so it filters and just shows either the automated or the manual in the execution. Or do I need to do something with the build environment?
- I changed the datapool data so it uses an incorrect login. No matter what was passed in. The results never showed a failure. What is happening?
- Since this is using datapools, does it capture that and copy it over? Thereby sending back a valid datapool?